jgraph / drawio

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

export as PDF #4617

Closed Petrelli closed 2 months ago

Petrelli commented 2 months ago

Is your feature request related to a problem? Please describe. After the update, draw.io no longer allows exporting to PDF from the 'Export as -> Advanced' option. The direct 'Export as PDF' option always has issues with sizing.

Describe the solution you'd like Is it possible to restore the previous method of exporting to PDF from the 'Advanced' option? Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

alderg commented 2 months ago

The previous method can not be restored. What are the issues with sizing?

Petrelli commented 2 months ago

The issue with sizing is that, in the previous 'Export as -> Advanced' method, the PDF would automatically adjust the size of the content, eliminating any unnecessary whitespace. The current 'Export as PDF' option, however, does not have this feature. Instead, it exports the image as if it were pasted onto an A4-sized sheet, leaving a lot of extra whitespace around the content.

alderg commented 2 months ago

Try "Crop":

Screenshot 2024-08-27 at 08 27 16
Petrelli commented 2 months ago

Thanks, it works.