Create a PDF out of an AEM page | Community
Skip to main content
kishore_polsani
Level 4
September 12, 2017
Solved

Create a PDF out of an AEM page

  • September 12, 2017
  • 5 replies
  • 7062 views

Do we have an OOTB feature to convert AEM page into PDF?. Users who access AEM page can click on a button to download current page as PDF. 

I am going through PDFBOX api, but not sure if I can create pdf out of AEM page.

Thanks,

Kishore

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

We have an older community artilce for AEM 5.x that shows how to use PDFBOX API.

Scott's Digital Community: Creating a custom Adobe Experience Manager PDF service

But to convert a page - you would need to read the HTML of the page under /content and then use that HTML as the content to convert to the PDF. We do not have an example of that.

5 replies

smacdonald2008
Level 10
September 12, 2017

I do not think there is an OOTB feature that converts a AEM Page to PDF. You would have to build a custom service that reads the HTML of the page and port it to a PDF using a library like PDF BOX API.

kishore_polsani
Level 4
September 12, 2017

Thanks Scott,

Do we have any helpx article or code snippet for this?

smacdonald2008
smacdonald2008Accepted solution
Level 10
September 12, 2017

We have an older community artilce for AEM 5.x that shows how to use PDFBOX API.

Scott's Digital Community: Creating a custom Adobe Experience Manager PDF service

But to convert a page - you would need to read the HTML of the page under /content and then use that HTML as the content to convert to the PDF. We do not have an example of that.

kishore_polsani
Level 4
November 1, 2018

Do we have any updates for this feature in AEM 6.4?

April 1, 2020

The only PDF generator on the market today is XpGenerator.  It is offered by my company Xpediant Digital.  It is a full function tool that can:

1.  Create pdf's of individual pages or an entire site

2.  Can automatically generate pdf's for desktop, tablet, and mobile

3.  Can be configured to mimic javascript commands to simulate opening tabs, carousels, and expand accordions

4.  The interface is immediately familiar - as it functions completely within your AEM instance

5.  Gives you flexibility in output - individual page pdf's or complete site files

6.  Custom coversheets to make archiving easy

Let me know if you'd like to take a look or hear more.

Greg McGee - Vice President of Digital Transformation

gmcgee@xpediantsolutions.com

612 845 0860