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

Drawio with multiple pages to a single PDF or XML #93

Open
marpate1 opened this issue Sep 25, 2023 · 2 comments
Open

Drawio with multiple pages to a single PDF or XML #93

marpate1 opened this issue Sep 25, 2023 · 2 comments
Assignees

Comments

@marpate1
Copy link

Hi,

I find that when I have a multi-page drawio file and run this against drawio-export to convert to PDF, I get one file which contains all pages and separate files for the page 2 onwards:

-rw-r--r--. 1 root root 107186 Sep 25 15:38 test-OAM.pdf
-rw-r--r--. 1 root root  22761 Sep 25 15:38 test-DNN1---be.pdf
-rw-r--r--. 1 root root  22850 Sep 25 15:38 test-DNN2---sw.pdf
-rw-r--r--. 1 root root  23928 Sep 25 15:38 test-DNN3---rt-video.pdf
-rw-r--r--. 1 root root  23682 Sep 25 15:38 test-DNN4---rt-auto.pdf

But then, if I use drawio-export to export xml, I get a file for each page, but each file contains exactly the same detail (all pages). So it seems that the export to PDF works differently to xml.

-rw-r--r--. 1 root root  54009 Sep 25 15:39 test-OAM.xml
-rw-r--r--. 1 root root  54009 Sep 25 15:39 test-DNN1---be.xml
-rw-r--r--. 1 root root  54009 Sep 25 15:39 test-DNN2---sw.xml
-rw-r--r--. 1 root root  54009 Sep 25 15:39 test-DNN3---rt-video.xml
-rw-r--r--. 1 root root  54009 Sep 25 15:39 test-DNN4---rt-auto.xml

Is it possible to limit the output to a single file for PDF?

Many thanks!

@rlespinasse rlespinasse self-assigned this Sep 26, 2023
@rlespinasse rlespinasse added the bug Something isn't working label Nov 26, 2023
@rlespinasse
Copy link
Owner

Hello,

I can't reproduce the issue with PDF export. I try with the latest release and the one at your issue creation time. Can you tell me more about the command line you use?

But for XML, I can reproduce it. I will investigate in which part of the stack the issue is.

@rlespinasse
Copy link
Owner

For the PDF issue, this seems related to #85 (and jgraph/drawio#3597). It's been fixed since the v4.7.0 of drawio-export.

For the XML issue, I discovered that for XML export, the process doesn't support page per page.

I will update the backend drawio-exporter to support this usecase (rlespinasse/drawio-exporter#56)

@rlespinasse rlespinasse removed the bug Something isn't working label Mar 30, 2024
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

2 participants