jgraph / drawio-desktop

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

the export pdf file not match set setting pages #1726

Open iysheng opened 1 month ago

iysheng commented 1 month 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.

Describe the bug I try to export pdf file with pages 3 to 7. But I get the pdf with more pages than I choose. I add the drawio file and my exported pdf file. xxxx.pdf xxxx.zip

To Reproduce Steps to reproduce the behavior:

  1. unzip xxxx.zip
  2. open xxxx.drawio
  3. export pdf with pages 3 to 7
  4. See the pdf

Expected behavior A clear and concise description of what you expected to happen.

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):

alderg commented 1 month ago

What settings did you use in the export pdf dialog?

iysheng commented 1 month ago

image

like this

alderg commented 1 month ago

Check "Crop".

iysheng commented 1 month ago

Check "Crop".

still wrong. xxxx.drawio.pdf image

alderg commented 1 month ago

This is what the different options will do:

What is the expected result?

iysheng commented 1 month ago

This is what the different options will do:

* _Page View_ will paginate based on the selected paper size in the diagram.

* _Crop_ will create a single page per diagram that matches the diagram size.

* _Fit to_ will create the given number of pages per diagram with the selected paper size.

What is the expected result?

I just want to export a pdf with 5 pages with sheet 3,4,5,6,7。Rather I choose page view or choose crop, the exported pdf is not what I want .