AEM Site Page URL to PDF | Community
Skip to main content
Level 2
May 30, 2023

AEM Site Page URL to PDF

  • May 30, 2023
  • 2 replies
  • 828 views

Hi All,

 

We have a requirement to convert and AEM Site page to PDF when given a sitepage url as an input.

 

We have been trying opensource solutions like iText html2pdf, iTextRenderer, wkhtmltopdf but none of the worked. With itexthtml2pdf we were able to generate pdf but unable to fetch dynamic components such as "Dynamic media powered or coveo powered" also, local AEM often corrupts.

 

Looking for any frontend or backend approaches to generate PDFs.

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Sady_Rifat
Community Advisor
Community Advisor
May 30, 2023

Hello @trisandhyanagam ,
Have you tried with the clientside library htmlToPdf? https://ekoopmans.github.io/html2pdf.js/ 

For client-side rendering, you must load the JS after the content is ready.

Shashi_Mulugu
Community Advisor
Community Advisor
May 30, 2023

@trisandhyanagam can you please explain this in more detail? what is the usecase of PDF export of webpage? Are you trying to over achieve AEM DITA?