jgraph / drawio-desktop

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

Commandline export to PDF '--embed-diagram' does not include the diagram #1170

Open bcm0 opened 1 year ago

bcm0 commented 1 year ago

Preflight Checklist

Describe the bug The commandline interface works fine when exporting files to .png or .svg, but it fails to embed the diagram when exporting to .pdf (which should work according to the commandline help).

To Reproduce Steps to reproduce the behavior:

  1. Open a predefined template diagram in draw.io desktop
  2. Export 'test.png' and make sure to include a copy of the diagram
  3. Close draw.io desktop
  4. Export with commandline draw.io.exe -x -f pdf -e -o test.pdf test.png
  5. Try to open 'test.pdf' on the commandline draw.io.exe test.pdf Error: (error on line 1 at column 1: Document is empty)

Expected behavior There should be a diagram embedded in the exported .pdf file.

Desktop (please complete the following information):

stale[bot] commented 1 year 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.

github-actions[bot] commented 2 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.

davidjgraph commented 2 months ago

Can you check again on latest please?