HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › Some image not loading when converting to PDF › Re: can not load image error with pd4ml converting from html to
@csueaq wrote:
Hi there
Hello Everyone,
Image is not displayed while converting from html to pdf.
I have picked randomly some image from internet like
http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
But I am able to view image when placed in browser.
How to fix this?
Any help is appreciated ….Thanks~/Downloads/pd4>java -Xmx512m -Djava.awt.headless=true -cp ./pd4ml_demo.jar:ss_css2-0.9.4_pd4ml2.jar Pd4Cmd ‘file:sample1.html’ 1200 LETTER -bookmarks HEADINGS -pdfforms -debug -out ./pd4ml.pdf
version: PD4ML 399 (eval)
default built-in stylesheet parsed [28ms]
loading file:sample1.html [6ms]
image not yet in cache: file:sf.jpg
not yet in cache: file:sf.jpg
loading file:sf.jpg [0ms]
image size: 5510
image not yet in cache: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
not yet in cache: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
loading http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG [26221ms]
errno: 111 (Connection refused), error: Connection refused (local port 50735 to address 0:0:0:0:0:0:0:0, remote port 80 to address 74.208.20.166): http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG (socket timeout 0ms)
image http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG has zero length.
can not load image: http://www.daycomsolutions.com/Support/BatchImage/HPIM0050w50.JPG
done in 27878ms.Many thanks
Sudhakar