jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.37k stars 7.67k forks source link

%pagenumber% is the same on every page in an exported PDF #4102

Open AG7GN opened 10 months ago

AG7GN 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 In a multi-page document, %pagenumber% is the same on every page in an exported PDF document when the number of pages exported is less than the total number of pages in the draw file and Include a copy of my diagram is not checked. The %pagenumber% value is incorrectly set to the total number of pages exported on every page of the PDF.

To Reproduce Steps to reproduce the behavior:

  1. Go to File > Export as > PDF...
  2. Select Pages and, for example, enter 1 to 4 in a 5 page diagram.
  3. Uncheck Include a copy of my diagram.
  4. Click Export

Expected behavior Expected behaviour is that %pagenumber% works the same way both in the web editor and in the PDF export process, so that %pagenumber% in the PDF represents the actual page number regardless of the number of pages exported.

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

Desktop (please complete the following information):

Additional context A similar problem was reported and fixed in 2019: #548

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

woerrr commented 3 months ago

Same issue with %page%, value is the same (current page when exporting) on every page @AG7GN

MrDanielGerber commented 1 month ago

Reproducible with browser v24.7.17, in Chrome Version 129.0.6668.90 (Official Build) (64-bit), Win 11 Pro 23H2.

This is prohibitive of making multi page drawings official documentation in our company.

davidjgraph commented 1 month ago

Please stop with the "me too" comments, they add nothing. Thumbs up the original post to vote.