.pdf extension not resolving | Community
Skip to main content
Nishadh
New Participant
October 16, 2015
Solved

.pdf extension not resolving

  • October 16, 2015
  • 1 reply
  • 916 views

Hi All,

Am working on cq5 out of box feature "Apache fop" to download a page as pdf. I tried to access the the page URL with extension .pdf but it showing up "Internal Server Error", I gone through the log file and find out that error as  Unreachable code <%@include file="proxy.jsp"%> in Page.pdf.jsp  and i tried with absolute path too eg:"/libs/.." still the same error.

 

P.S : xml extension is working perfectly

My AEM version is 5.6.1

Can anyone help on this.

Thanks a lot in Advance.

Mohamedh Nishadh

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 Techaspect_Solu

Hi,

For OOTB components which are registered in " /libs/wcm/core/content/pdf/page2fo.xsl ".
Reason : It is a CQ bug .There is an extra space added in this below script.So,if we remove the space page will convert into pdf automatically.
Steps :
1.Go to /libs/foundation/components/primary/cq/Page/Page.pdf.jsp
2.Remove the space that is added end of the line.

1 reply

Techaspect_Solu
Techaspect_SoluAccepted solution
New Participant
October 16, 2015

Hi,

For OOTB components which are registered in " /libs/wcm/core/content/pdf/page2fo.xsl ".
Reason : It is a CQ bug .There is an extra space added in this below script.So,if we remove the space page will convert into pdf automatically.
Steps :
1.Go to /libs/foundation/components/primary/cq/Page/Page.pdf.jsp
2.Remove the space that is added end of the line.