Convert Dynamic to Static with button | Community
Skip to main content
Level 2
March 28, 2023
Solved

Convert Dynamic to Static with button

  • March 28, 2023
  • 1 reply
  • 594 views

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"? 

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 Nirmal_Jose

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-p/270625

1 reply

Nirmal_Jose
Adobe Employee
Nirmal_JoseAdobe EmployeeAccepted solution
Adobe Employee
March 29, 2023

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-p/270625