How to generate the PDF in CQ5.6.1. I have a page with from with some fields and need to generate the PDF whic contains all the form field and its values. | Community
Skip to main content
October 16, 2015
Solved

How to generate the PDF in CQ5.6.1. I have a page with from with some fields and need to generate the PDF whic contains all the form field and its values.

  • October 16, 2015
  • 2 replies
  • 1184 views

HI,

I have crated the file_abc.xsl which is in the same foleder where we have the page2fo.xsl ,but in the page i have the form with some fields including image ,when i put .pdf to my page url PDF is genarating but I am able to get the page form field names only not the values.

Please let me know how i will be able to get the form field values also in the PDF genarated.

Thanks

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 smacdonald2008

Using AEM to generate PDFs - you have two choices for this type of workflow:

1- If your enterprise requires true PDF integration, it may be worth looking at the possibility of integrating AEM with LiveCycle:
http://helpx.adobe.com/livecycle/help/aem/aem-livecycle-connector.html

http://scottsdigitalcommunity.blogspot.ca/2012/07/integrating-livecycle-into-adobe-cq.html (this shows integrating AEM and LC and creating a PDF/A document for long term storage.)

This is an enterprise scale solution and you will be able to perform all sorts of PDF/AEM solutions to address many enterprise use cases.  

2- You can also use a PDF Java lib like PDFBOX to create a custom OSGi service that generates PDF documents. See this community article: 
http://helpx.adobe.com/experience-manager/using/creating-custom-experience-manager-pdf.html (PDFBOX API is not a substitute to LC server - but it will generate PDFs). 

But there is no documentation that discusses how to configure AEM to generate a PDF with both forms and form data. This is not an out of the box feature. 

2 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

Using AEM to generate PDFs - you have two choices for this type of workflow:

1- If your enterprise requires true PDF integration, it may be worth looking at the possibility of integrating AEM with LiveCycle:
http://helpx.adobe.com/livecycle/help/aem/aem-livecycle-connector.html

http://scottsdigitalcommunity.blogspot.ca/2012/07/integrating-livecycle-into-adobe-cq.html (this shows integrating AEM and LC and creating a PDF/A document for long term storage.)

This is an enterprise scale solution and you will be able to perform all sorts of PDF/AEM solutions to address many enterprise use cases.  

2- You can also use a PDF Java lib like PDFBOX to create a custom OSGi service that generates PDF documents. See this community article: 
http://helpx.adobe.com/experience-manager/using/creating-custom-experience-manager-pdf.html (PDFBOX API is not a substitute to LC server - but it will generate PDFs). 

But there is no documentation that discusses how to configure AEM to generate a PDF with both forms and form data. This is not an out of the box feature. 

New Participant
October 16, 2015

As mentioned by Scott correctly, there is another option to create pdf by using Apache FOP and xls. 

http://xmlgraphics.apache.org/fop/quickstartguide.html

http://www.e-zest.net/blog/integrating-apache-fop-with-java-project-to-generate-pdf-files/