jgraph / drawio-desktop

Official electron build of draw.io
https://www.diagrams.net
Apache License 2.0
50.62k stars 5.01k forks source link

Linux Ubuntu 23.10 - PDF export and print to file - extra pages or crash #1569

Closed CoolGames closed 6 months ago

CoolGames commented 10 months ago

Preflight Checklist

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.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug Attempting to resize Page Setup from A4 to US-Letter then export or print to PDF is unsuccessful with out work around.

To Reproduce Steps to reproduce the behavior:

  1. Open existing A4 Landscape draw.io source
  2. Modify Page Setup to US-Letter
  3. Select All and Group
  4. Move to left to fit on shorter page width. Luckily this works without scaling.
  5. Save
  6. Print to File crashes Draw Desktop before creating PDF Export to PDF adds blank pages already reported at jgraph/docker-drawio#147 but work around by omitting blank pages when printing to new PDF.

Expected behavior A clear and concise description of what you expected to happen. I expect a US-Letter PDF to Preview or print without resize to fit and pass on to others

Screenshots If applicable, add screenshots to help explain your problem.

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

Desktop (please complete the following information):

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

Additional context I began with Chrome Browser on Linux but prefer local desktop version if available. I will be trying other versions on Raspberry Pi 400 Bookworm, ASUS Chromebook and Windows 11 laptop to isolate or confirm dependencies. I used this Roland s-1 diagram at GitHub on A4 page but use US-Letter on printer

m-mohamedin commented 10 months ago

Unfortunately, we cannot reproduce. We doubt it is due to large diagram size and limited raspberry pi resources. Can you repeat on a larger machine?