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

Export To doesn't work with multiple pages #108

Open
phillip-haydon opened this issue Jun 30, 2020 · 16 comments
Open

Export To doesn't work with multiple pages #108

phillip-haydon opened this issue Jun 30, 2020 · 16 comments
Labels
help wanted I'm very open for help on this one! I probably won't do it soon low-prio bug Something isn't working, but only very few users might notice this will do for sponsorship I do this project just for fun. You can support me at https://github.com/sponsors/hediet ;)
Projects

Comments

@phillip-haydon
Copy link

If you're using pages, if you attempt to export it always exports the first page, not the current selected page.

There is a work-around for anyone who does get hit by this bug.

If you drag the page to the first position, it will export the desired page.

image

i.e I want to export Proposed. So I move it to the left:

image

It will now be the page that is exported.

@hediet hediet added this to Triage in Backlog Jun 30, 2020
@hediet
Copy link
Owner

hediet commented Jun 30, 2020

Thanks for your report!
The same happens when using the *.drawio.png feature. However, exporting to svg works as expected.

If enough people are annoyed by this behavior, I can look into it!

@hediet hediet moved this from Triage to Not Planned In Near Future in Backlog Jun 30, 2020
@hediet hediet added help wanted I'm very open for help on this one! I probably won't do it soon low-prio bug Something isn't working, but only very few users might notice this will do for sponsorship I do this project just for fun. You can support me at https://github.com/sponsors/hediet ;) labels Jun 30, 2020
@hediet
Copy link
Owner

hediet commented Jun 30, 2020

As you can see here png and svg export are pratically the same. Might involve some ugly debugging of drawio internals and could even be a drawio bug.

@phillip-haydon
Copy link
Author

Complicated for me :D may attempt to understand it on the weekend.

@shutaozhenzhen
Copy link

I hope you can also make Export using page name in default.

@Speedy37
Copy link
Contributor

This is caused by the pageId extra data attribute as show in the export code at: https://github.com/jgraph/drawio/blob/cfb48700e8c721bd9ee5552bb7e8ed1c8902e933/src/main/webapp/js/diagramly/EditorUi.js#L10976

@SDAdham
Copy link

SDAdham commented Aug 24, 2021

Thanks for your report!
The same happens when using the *.drawio.png feature. However, exporting to svg works as expected.

If enough people are annoyed by this behavior, I can look into it!

I am annoyed by this bug too, please help.

@cumminsd
Copy link

I would love to see this too! The work around... works... but is annoying.
Another feature would be to export either a large image with all the diagrams in it, or allow exporting multiple pages in one action.

@mverkerk-godaddy
Copy link

same issue is there when inserting .drawio.svg|png into a markdown file - it shows only the first page - what would be cool is if you could do something like ![my_diagram](./diagram.drawio.svg#page-1) ...

@AnabasisXu
Copy link

still troubled by this.
If I could not export the second page, what is the point of having the option of multiple pages?

@hediet
Copy link
Owner

hediet commented Aug 15, 2022

same issue is there when inserting .drawio.svg|png into a markdown file - it shows only the first page - what would be cool is if you could do something like ![my_diagram](./diagram.drawio.svg#page-1) ...

I doubt this is possible.

@yihong-chen
Copy link

I wish this can be solved. Exporting images one by one is working but it is a bit time-consuming if you have so many tabs

@eastera
Copy link

eastera commented Mar 29, 2023

Still struggling with this problem. Can't believe this ticket was created in 2020.

@tomko80
Copy link

tomko80 commented Jun 13, 2023

Why was this not fixed in the last release? I'm now needing to create several files instead of one as the png export only exports the first page and the svg export cuts off details.

@nivintw
Copy link

nivintw commented Sep 28, 2023

@tomko80 why didn’t you submit a PR for it before the last release?
this is open source.
the issue clearly has a “help-wanted” label, as well as “will do for sponsorship” and “I probably won’t do soon” labels.

Be the change you want to see. No one owes anyone anything here.

@phillip-haydon
Copy link
Author

Why was this not fixed in the last release? I'm now needing to create several files instead of one as the png export only exports the first page and the svg export cuts off details.

The work-around is to literally just drag the page tab you want to export to position 1, then export.

I did look at sending a PR myself but didn't understand the codebase and didn't have time.

@jkilgrow
Copy link

I am creating an enterprise diagram repository that I want to promote editable svg images because they are friendly to both technical and non-technical users. However, if the only thing I can do is save "one page at a time", I consider this a straight-up defect if the svg format has the capability to save multiple pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted I'm very open for help on this one! I probably won't do it soon low-prio bug Something isn't working, but only very few users might notice this will do for sponsorship I do this project just for fun. You can support me at https://github.com/sponsors/hediet ;)
Projects
Backlog
  
Not Planned In Near Future
Development

No branches or pull requests