FrDeamon / EnseparHtml2pdfBundle

Html2pdf for Symfony 2 as a service.
MIT License
22 stars 22 forks source link

Html2Pdf not showing png images #29

Closed codedgift closed 6 years ago

codedgift commented 6 years ago

i have been working with how to convert html page to pdf.. been trying to insert a image (png), it's not showing and trying changing the image to a jpg it's showing. my question is how can i allow html2pdf library to accept/allow png image file. Thanks in advance

OwlyCode commented 6 years ago

Hello !

That's weird, png are supposed to work by design. Have you tried a different png ? Maybe this particular file has a problem ?

Can you show me the code ?

codedgift commented 6 years ago

okay thanks.... i have figure it out.... i just have to change the image to jpg... that work for me..

codedgift commented 6 years ago

i have been working offline and everything seems fine and ok, not until i upload my content online, i started having errors that never show up while offline. please what's wrong.

OwlyCode commented 6 years ago

Mmh, that's hard to tell without the code or the message of the error. I never heard of problems with online content. If this happened to me I would check the pathes of the images in the html and the network connection.

Have you tried viewing the html you want to convert in your browser ? Does it display correctly ?

Also, this repository is only the binding of Html2pdf inside Symfony, maybe they'll have better support for you at the official repository of the library : https://github.com/spipu/html2pdf

OwlyCode commented 6 years ago

Closing due to inactivity.

rkorchid commented 4 years ago

thanks