Pechkin icon indicating copy to clipboard operation
Pechkin copied to clipboard

Some images missing?

Open Vloz opened this issue 12 years ago • 7 comments

Hey Gman and thank you for this great wrapper!

Is that normal that on some html page, few images (always the same) are not converted?

Even if i set : ObjectConfig.SetLoadImages(true); ObjectConfig.SetPrintBackground(true);

Did i forgot something?

Thank you! <3

Vloz avatar Sep 18 '12 08:09 Vloz

Hello! I did test images, but I haven't encountered any misbehavior. Though the testing wasn't that thourough, so I could miss something.

Could you please try to isolate the issue and create the demonstrating page, where the bug is reproduced?

gmanny avatar Sep 18 '12 08:09 gmanny

Thanks for your answer! :)

Not sure for the moment,but obviously there is most of time a probleme with rendering .gif images. But it's probably a known issue of the wkhtmltopdf shown there:

http://code.google.com/p/wkhtmltopdf/issues/detail?id=441

Vloz avatar Sep 18 '12 09:09 Vloz

Oh, yeah, GIFs don't work.

gmanny avatar Sep 18 '12 09:09 gmanny

I've tried placing files qgif4.dll and qjpeg4.dll into imageformats folder, it didn't help. So, I guess, the recompilation is our only way. I will do this, but I really don't know when I'll have the time.

gmanny avatar Sep 18 '12 09:09 gmanny

Hi, if I convert PDF from local html file, images are omited. But if I convert it from web page, images are included, but still with too bad resolution. (result preview: http://www.art-work.cz/data/badimages.pdf - made from source at http://www.seznam.cz). Any ideas how to fix it? Am I doing something wrong?

enKor avatar Sep 19 '12 10:09 enKor

@enKor You can set image quality with .SetMaxImageDpi() and .SetImageQuality() options in GlobalConfig. You can enable local resources with .SetAllowLocalContent(true) in ObjectConfig.

gmanny avatar Oct 02 '12 17:10 gmanny

Thanx, it works.

enKor avatar Oct 02 '12 18:10 enKor