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

Significant File Size Increase and Compatibility Issue with Cropped PDFs Exported from draw.io on macOS #4863

Open
penguinnnnn opened this issue Jan 22, 2025 · 0 comments

Comments

@penguinnnnn
Copy link

penguinnnnn commented Jan 22, 2025

Hello,

I encountered an issue when working with PDFs exported from draw.io on macOS. Here's the problem:

  1. When I use the macOS Preview application to crop a PDF exported from draw.io, the file size increases significantly.
  2. The cropped PDF cannot be used in LaTeX environments like Overleaf. Specifically, I encounter a "exceed buffer limit" error when trying to include the cropped PDF.

Steps to Reproduce:

  1. Create a diagram in draw.io and export it as a PDF.
  2. Open the exported PDF in the macOS Preview application.
  3. Use the cropping functionality in Preview to crop the PDF.
  4. Observe that the file size of the cropped PDF is significantly larger.
  5. Attempt to use the cropped PDF in a LaTeX document (e.g., on Overleaf) and encounter the "buffer exceed limit" error.

Expected Behavior:
The cropped PDF should:

  1. Have a reduced or at least comparable file size.
  2. Be compatible with LaTeX environments like Overleaf without causing a "exceed buffer limit" error.

Observed Behavior:

  1. The cropped PDF has a significantly larger file size than the original.
  2. The cropped PDF causes an error when included in a LaTeX document, making it unusable.

System Details:

  • macOS Version: Sequoia 15.2
  • draw.io Version: All versions after Feb 2024

Additional Notes:
I suspect the issue might be related to how draw.io generates the PDF or how macOS Preview handles cropping for certain PDF formats. It would be helpful if the exported PDF could be optimized to avoid this behavior.

Please let me know if further details or example files are needed to investigate this issue.

Thank you!

@jgraph jgraph deleted a comment from JY-Joy Jan 22, 2025
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

1 participant