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

PDF export from a diagram page in edit mode is exporting the Draw.io logo instead of the requested diagram #175

Closed
AndreeaChi opened this issue Feb 24, 2021 · 4 comments

Comments

@AndreeaChi
Copy link

Hi team!

This issue was reproduced on a local Jetty XWiki 13.0 (and on a Docker container, still XWiki 13.0 version), Diagram Pro version 1.15.4 .

Steps to reproduce:

  1. Edit a diagram and choose to export it as a PDF:
    image
  2. Picked one option (Selection or Crop or Grid, the result is the same with all options).
  3. Either Open in New Window or Download.
    image
  4. The result is
    image

The result is the same in full page mode or when I choose the PDF option from Advanced mode as well.

The diagram is exported when choosing the export as PDF option from the XWiki page menu.

In case the diagram I tested with could be useful, here it is a xar export of it in a zip (as this one was supported by git at upload):

Diagram.project-organization-team.WebHome.zip

Thank you for your help!

@mflorea
Copy link
Collaborator

mflorea commented Feb 25, 2021

@AndreeaChi have you tested with other diagrams? Are you able to export a very basic diagram that has for instance a single shape?

@oanalavinia
Copy link

oanalavinia commented Feb 25, 2021

@mflorea I just tested and it seems to be the same result even for a simple diagram

Later edit: the problem seems to be that the export url that we have is no longer available https://github.com/xwikisas/application-diagram/blob/master/application-diagram-ui/src/main/resources/Diagram/DiagramConfig.xml#L90
Updating it

oanalavinia added a commit that referenced this issue Feb 25, 2021
…logo instead of the requested diagram #175

* the draw.io export url was changed since they moved to diagrams.net
@oanalavinia
Copy link

The export from the diagram page uses an external service from draw.io and the url for this is the Diagram configuration page. The issue is caused by the fact that draw.io moved to diagrams.net space, so the export url that we provided was also changed.

Note that the fix can also be manually applied from Global Administration > Other > Diagrams by adding https://convert.diagrams.net/node/export as Export URL

@oanalavinia oanalavinia added this to the 1.15.5 milestone Feb 25, 2021
@gtothill
Copy link

Thanks all - this was one that I reported - the new API URL works fine.
All the best,
Geoff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants