-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setting DPI changes page size #1953
Comments
I can not set the dpi in typescript. DPI prop is not there. |
Any update on this bug ? |
Unfortunately I have the same issue. So working with anything other than 72 dpi breaks the page dimensions in mm. This is caused by #1869 I guess. Could you have a look at it @diegomura? Thank you! |
I will try to explain what I understood and how I resolved my issue with DPI. A PDF doesn't really have DPI, as it is vector-based. However, you can include images inside it that are 300 DPI, and you will have a "300 DPI" PDF with the correct size in cm. |
Describe the bug
I would expect that changing the DPI of PDF pages would not reflect as a change in inches/printed size (just higher resolution). But I am observing that that inches dimensions of PDFs does changes based on
dpi
.To Reproduce
<Page wrap dpi=300 orientation="landscape" size="Letter">
Expected behavior
The PDF shows Page Size: 11 × 8.5 inches
Actual behavior
The PDF shows Page Size: 45.84 × 35.42 inches
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: