New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enclosed image in html not shown #413

Open
Pattoow opened this Issue Nov 20, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@Pattoow

Pattoow commented Nov 20, 2018

Hiya,

I got html files where the image file is included inside the html like:
<div class="par" style="vertical-align:baseline;font-family:inherit;font-size:0;font-weight:inherit;font-style:inherit;background-color:transparent;margin:0;padding:0;border:0;text-align:left;line-height:13.00pt;margin-top:0.00000pt;margin-bottom:0.00000pt;margin-left:0.00000pt;margin-right:0.00000pt;text-indent:0.00000pt;direction:ltr;"><span style="vertical-align:baseline;background-color:transparent;margin:0;padding:0;border:0;font-family:'Arial',sans-serif;font-size:0;font-weight:bold;font-style:normal;color:#000000;text-decoration:none;"><img style="font-family:inherit;font-size:0;font-weight:inherit;font-style:inherit;margin:0;vertical-align:text-bottom;background-color:transparent;padding:0.00000pt 0.00000pt 0.00000pt 0.00000pt;border:0.75pt solid transparent;" height="114" src="data:image/bmp;base64,Qk0+iAYAAAAAADYAAAAoAAAAIgIAAAUBAAABABgAAAAAAAiIBgBiBQAAEwMA AAAAAAAAAAAA//////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////...

base64 encoded :-). Although it isnt showing in the output, am I missing something here?

@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 20, 2018

Hi!
Data url have a bug in TCPDF, for this i've forced TCPDF version in Composer:
"require":{ "spipu/html2pdf":"~5", "tecnickcom/tcpdf": "6.2.17" }
Regarsd,
LBF

@Pattoow

This comment has been minimized.

Pattoow commented Nov 20, 2018

That did the trick thanks! 👍

So happy works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment