aspose file tools*
The moose likes XML and Related Technologies and the fly likes Flying saucer - HTML to PDF - Need to display image from the server in PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Flying saucer - HTML to PDF - Need to display image from the server in PDF" Watch "Flying saucer - HTML to PDF - Need to display image from the server in PDF" New topic
Author

Flying saucer - HTML to PDF - Need to display image from the server in PDF

Deivamani Arumugam
Greenhorn

Joined: Mar 08, 2013
Posts: 4
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.

Thanks in advance.
Deiva
 
Consider Paul's rocket mass heater.
 
subject: Flying saucer - HTML to PDF - Need to display image from the server in PDF