Regarding .pdf Extension | Community
Skip to main content
November 24, 2016
Solved

Regarding .pdf Extension

  • November 24, 2016
  • 5 replies
  • 2048 views
Like 5.6 accepts (.pdf )extension in the url can we make this enable for 6.x.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

5 replies

Adobe 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.

November 24, 2016

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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
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
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.

November 25, 2016

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