Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

String HTML to create pdf file in AEM OSGI service/ sling servlet


Level 1

Please help me with best approaches to write HTML string to PDF file

Thanks in advance

1 Reply


Community Advisor

Thanks for the question @rnaveen2 


I have recently implemented similar use-case in my project. We have used headless chrome 


chrome --headless --disable-gpu --print-to-pdf


You can pass your HTML to headless chrome in the place of URL and save it.



Kiran Vedantam.