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

PDF final size not matching page size - Windows #1803

Closed
2 tasks done
creeduk opened this issue Jul 2, 2024 · 5 comments
Closed
2 tasks done

PDF final size not matching page size - Windows #1803

creeduk opened this issue Jul 2, 2024 · 5 comments

Comments

@creeduk
Copy link

creeduk commented Jul 2, 2024

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
In earlier versions I had no issue the size was minimally different 14 x 8.51, I tested again today version 22.1.11 and the steps below give me a 14 x 8.51 PDF. In newer versions this started to slip and the current version (24.6.4) gives 14.58 x 8.85.
Crop will crop down to the size of rectangle. But even if I make a 14 x 8.5 rectangle the PDF is a different size (14.61 x 8.88)

To Reproduce
Steps to reproduce the behavior:

  1. New blank document
  2. set document paper size to legal (14 x 8.5)
  3. Add anything I added a simple rectangle
  4. Export to PDF - Default settings

Expected behavior
A PDF that matches the size of the
test_legal_22.1.pdf
test_legal_page_latest_26.4.pdf
test_legal_drawio_file.zip
document paper size

Screenshots
If applicable, add screenshots to help explain your problem. - See example uploads

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 24.6.4 (also in 24.4.0 and others)

Desktop (please complete the following information):

  • OS: Windows

Additional context
I started working backwards trying to find which version worked I have updated several time this year but my other outputs had been images, today I could not match the earlier PDF's I had so after 3 different version I found the 1 that worked OK. One I tested along the way 24.0.4 was close with 14 x 8.53 so it is something that has been slipping a little at a time.

As a crop test I made the rectangle 14 x 8.5 and selected crop in export options, but this still did not make a correct size PDF

@Frame42
Copy link

Frame42 commented Jul 18, 2024

I can confirm the behavior is also present on the Confluence plugin version 13.0.6.

Exporting a US-Tabloid 11x17 draw.io gives me a 11.46 x 17.71 PDF.

Weather the page size is defined in inches, centimeters or points does not make a difference.
When exporting, Page View or Fit give the same result, Crop is slightly different but also off.

@gerwindehaan
Copy link

In Draw.io 24.6.4 --

100mmx100mm-test.drawio.pdf
100mmx100mm-test.drawio.zip

Experiencing similar issue in A4, but also custom size. For reference, setting the page size to custom 100x100mm and exporting at zoom 100%, crop 0 gives me a PDF that MacOS reports to be 104,1mm x 104,1mm. See attached files

I get closest with Zoom set to 95% and mode Crop.

@davidjgraph
Copy link
Contributor

give me a minute to release 24.7.5 and try again.

@gerwindehaan
Copy link

With Draw.io 24.7.5 it has been drastically improved and super usable (fixed in my use case). Now the results are accurate down to tenth-of-mms, e.g.

A4 210x297mm --> 209,9x29,71 mm in PDF as reported by MacOS (Finder / Preview / Quicklook)
custom 100x100mm --> 100,2x100,2 mm in PDF as reported by MacOS (Finder / Preview / Quicklook)

image

100mmx100mm-v24.5.7.drawio.pdf

@creeduk
Copy link
Author

creeduk commented Feb 19, 2025

Confirmed.
It has been a while since I needed to edit that document type. I did today and I tested the latest version I had which is 24.7.8 (for this doc I had been going back to 24.1) and it worked the right size PDF. I then grabbed the current version v26.0.9 and it is still outputting the correct size PDF. Thank you for the fix, sorry for my delayed response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants