Flying saucer - HTML to PDF - Need to display image from the server in PDF
posted 3 years ago
I am having an html page with text, image and I need to pass the HTML content to Flying saucer then it should generate the PDF with same alignment and content.
In the html page am having an img tag. In the image tag i will pass the src path like this (http://localhost:8085/content/dam/article-101-h1.jpg or http://www.google.co.in/intl/en_ALL/images/logos/images_logo_lg.gif).
My HTML Code (Article.html):
Note: Already i have tried with iText 5.2.1, but i could not able to print the image in the PDF (If i read the image from the local drive like D:/Deiva/CRs/HTMLPage/article-101-horz.jpg then its working fine in iText). Now i want to know that, by using Flying saucer Whether we can able to print the image (from the server) in the PDF or not.