Regarding .pdf Extension | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Employee
November 24, 2016

Hi,

Could you please explain your use-case bit more? 

If your question is around "Html to PDF Generation", then please have a look at this post:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__gvtx-hi_team_howtog.html

// AEM has a built in rewriter that automatically renders a page as a PDF through Apache FOP (with composition defined in XSL) whenever the extension .pdf is requested.  Creating a script in a template component with the name pdf.<script extension>, such as pdf.jsp, can override this, but then the pdf must be manually created and delivered though a library such as Apache PDFBox.  This document instructs you how to use the out of the box functionality of CQ to configure the PDF rewrite.

~kautuk

Kautuk Sahni

5 replies

November 25, 2016

thanks very much once again it works for both classic ui and touch ui

Translate
November 24, 2016

Thanks I am trying the above link .Exactly u r correct trying to convert html to pdf but if u see earlier version of CQ which accepts .pdf extension of same page here in 6.x trying to make this enable for .pdf for both touch and classic ui.

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Employee
November 24, 2016

Hi,

Could you please explain your use-case bit more? 

If your question is around "Html to PDF Generation", then please have a look at this post:

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__gvtx-hi_team_howtog.html

// AEM has a built in rewriter that automatically renders a page as a PDF through Apache FOP (with composition defined in XSL) whenever the extension .pdf is requested.  Creating a script in a template component with the name pdf.<script extension>, such as pdf.jsp, can override this, but then the pdf must be manually created and delivered though a library such as Apache PDFBox.  This document instructs you how to use the out of the box functionality of CQ to configure the PDF rewrite.

~kautuk

Translate
Kautuk Sahni
November 24, 2016

can u send some samples on  path picker i have n't try this one 

Translate
Employee
November 24, 2016

Should work with 6.x as well. In the path picker, you can provide the path to a PDF file. You can also specify external paths to PDF files. Did you try this out in 6.x? 

Let us know if you encounter problems.

Translate