Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Different printing on windows and linux #2184

Closed
lanlan-yang opened this issue Jan 30, 2015 · 4 comments
Closed

Different printing on windows and linux #2184

lanlan-yang opened this issue Jan 30, 2015 · 4 comments
Labels

Comments

@lanlan-yang
Copy link

Same command:
wkhtmltopdf --page-size a3 http://localhost:8080/PDFTest/create_PDF.action /var/www/webapps/PDFTest/pdfFile/order.pdf

result for windows 8.1:
image

result for centos 5.5
image

@lanlan-yang
Copy link
Author

image

@fnicollet
Copy link

Hello,

Have you found a solution to this issue? I get the same kind of error. When I print in A4 on Windows, it fits perfectly, while on linux, it seems like everything is zoomed in

Thanks,
Fabien

@ashkulz
Copy link
Member

ashkulz commented Jul 11, 2015

It's the other way round, on Linux it prints at 75 dpi (native for WebKit) while on Windows it uses the desktop's DPI (which is normally 96 dpi). You can use --zoom 0.78125 (75/96) to get the same effect on Linux.

@fnicollet
Copy link

@ashkulz Thanks, that's perfect :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants