Hi Everyone!
We all have viewed, used or sent PDF files and it is surely one of the most informative and common document formats on the internet.
In this discussion, I would like to share an implementation of generating PDFs from the HTML of a webpage(s) programmatically and easily.
We will make use of two Java libraries: Flying Saucer and iText, along with that to JSOUP – another open-source Java library has been used, for modifying the HTML dynamically.
You can get more information on the Flying Saucer API here.
In this blog post, I am going to explain how to implement these steps along with the code required.
Note: Go through this link : GENERATING PDF FROM HTML IN ADOBE EXPERIENCE MANAGER
Nice article. Thanks for sharing.
Thanks for sharing !!!
I am going to try this out thanks for sharing. We had some similar requirement lined up for a new requirement
Great community content!
Will this support or render java script prior to sending to itext?
I have pages with JavaScript and Itext needs us to "use a JavaScript preprocessor to convert the JavaScript into static HTML which can then be fed into" itext.
Gregg
Views
Replies
Total Likes
I have a use-case in which i need to generate PDF from HTML page using URL.
I have sample Landing page which accepts a url-encoded parameter id
At the time of page load an ajax call gets triggered and some html gets rendered dynamically through jquery based on that url parameter.
I tried itextpdf7, over here static pdf were getting generated as javascript is not supported.
https://stackoverflow.com/questions/58342600/can-pdfhtml-handle-dynamically-generated-html-content
Can itextpdf & flying saucer handle Javascript(HTML Generated after ajax call) to PDF?
Also, Can we achieve the use-case using pdf generator without using AEM Forms?
Adobe Experience Manager Help | Converting files using PDF Generator
Views
Replies
Total Likes
Can you share the link ? Unable to access the link.I have similar requirement of generating pdf in AEM
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies