I am having an html page with text, image and I am parsing the HTML content to iText to generate the PDF. In the PDF, image is not getting displayed, only the text is getting displayed.
If I pass the absolute path like
D:/Deiva/CRs/HTMLPage/article-101-horz.jpg then the image will get printed. But if I try to print the image from the server like
http://localhost:8085/content/dam/article-101-h1.jpg or http://www.google.co.in/intl/en_ALL/images/logos/images_logo_lg.gif
then it is not getting printed in the PDF.
I am using
itextpdf-5.2.1.jar to generate the PDF.
My HTML Code (Article.html):
I am using the below java code for generating the PDF:
Please suggest a solution to display the image in PDF.
Thanks in advance.
Deiva