Skip to content
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

blank page or crash with low DPI on Windows #1863

Closed
DeepSilver opened this Issue Jul 17, 2014 · 6 comments

Comments

Projects
None yet
2 participants
@DeepSilver
Copy link

DeepSilver commented Jul 17, 2014

Windows wkhtmltopdf version 0.12.1 creates a pdf with a blank page (or error) with PDI 95 and below

wkhtmltopdf --dpi 95 http://wkhtmltopdf.org/usage/wkhtmltopdf.txt wkhtmltopdf-test.pdf

wkhtmltopdf

wkhtmltopdf-02

Running the same command but on google page result in a blank page

wkhtmltopdf --dpi 95 http://google.com wkhtmltopdf-test.pdf

wkhtmltopdf-04

http://www.bkkba.com/wkhtmltopdf-test.pdf

@ashkulz

This comment has been minimized.

Copy link
Member

ashkulz commented Jul 17, 2014

Why do you want to use a low DPI? It is likely that something in the Windows-specific Qt code is crashing due to the DPI being lower than the system DPI.

@DeepSilver

This comment has been minimized.

Copy link
Author

DeepSilver commented Jul 18, 2014

@ashkulz I don't however we are trying to overcome an issue reported on OpenERP 8 project where the script running PDF generate empty file
odoo/odoo#364
There are cases such as the above where DPI as been set globally via a script that should run on platform independent.

If wkhtmltopdf DPI setting is limited to the system its running on, wouldn't it be wise to adjust itself to system DPI in order to avoid crashing?

@ashkulz ashkulz changed the title Windows wkhtmltopdf version 0.12.1 creates a pdf with a blank page (or error) with PDI 95 and below blank page or crash with low DPI on Windows Jul 20, 2014

@ashkulz

This comment has been minimized.

Copy link
Member

ashkulz commented Jul 20, 2014

Like I said, this is probably a bug in Qt. As there is a workaround in place, I'm not too inclined to look into this issue. If you can produce a stack trace after compiling a debug build, I might try to investigate further :-)

@ashkulz ashkulz closed this Jul 20, 2014

@ashkulz ashkulz reopened this Dec 8, 2014

@ashkulz

This comment has been minimized.

Copy link
Member

ashkulz commented Dec 8, 2014

See wkhtmltopdf/qt#12 for an explanation of why this issue occurs, fix is posted there.

@ashkulz ashkulz added the Verified label Dec 8, 2014

@ashkulz ashkulz added this to the 0.12.2 milestone Dec 8, 2014

@ashkulz ashkulz closed this in d95e924 Dec 8, 2014

@ashkulz ashkulz added Fixed and removed Verified labels Dec 8, 2014

ashkulz added a commit that referenced this issue Dec 9, 2014

@ashkulz

This comment has been minimized.

Copy link
Member

ashkulz commented Jan 4, 2015

A release candidate 0.12.2-rc-71e97c1 is available, which should fix this issue. Please report back if your issue is not solved with the above build.

@ashkulz

This comment has been minimized.

Copy link
Member

ashkulz commented Jan 10, 2015

0.12.2 has been released, which includes changes related to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.