Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Convert Dynamic to Static with button

Avatar

Level 2

Is there a way to automate the ability to convert from dynamic to static (like a button for save/submit) rather than the manual process of :print > save as > static PDF"? 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @wilsonl28824783 ,

 

There is no OOTB capability for this, but the customisation is very straight forward using a Java api for generating PDF. 

 

1. create a custom servlet with pdf selector

2. Overlay the menu to add a new button which invokes this URl with this selector

3. This servlet should in turn call the java api like [1]

 

Similar use case on [2]

 

[1] - https://github.com/wooio/htmltopdf-java

[2] - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/convert-aem-page-to-pdf/m-...

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi @wilsonl28824783 ,

 

There is no OOTB capability for this, but the customisation is very straight forward using a Java api for generating PDF. 

 

1. create a custom servlet with pdf selector

2. Overlay the menu to add a new button which invokes this URl with this selector

3. This servlet should in turn call the java api like [1]

 

Similar use case on [2]

 

[1] - https://github.com/wooio/htmltopdf-java

[2] - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/convert-aem-page-to-pdf/m-...