Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.


How can I export a PDF file without the unnecessary whitespace ?

+1 vote
I would like to only export my diagram, which is quite small as a PDF file. But when I export it, my diagram becomes tiny, surrounded with white space.

Could you please help me on this to only export the diagram ?
in Help by
recategorized by

Please upload a sample GraphML file, the resulting PDF document, and screenshots of your PDF export settings here, so we can reproduce the problem.

Please see How to upload files to yEd Q&A? for instructions on uploading files here.
Please do not start a new thread when uploading files, but either edit your original post or add an answer to this thread.

2 Answers

+1 vote

Please find below 

1. Screenshots of PDF seetings : 

2. Link to the GraphML file : 


3. Link to the resulting PDF document  : 


+1 vote

Thank you very much for the additional information and the sample files.

The problem is that your diagram contains several vertical "Recueil" labels whose "Size" policy is set to "Fit Node Width". These labels result in the diagram bounds being much larger than your pool node. You need to remove those labels so the total bounds of your diagram coincide with the bounds of your pool node.

I suggest the following approach for finding the problematic labels:

  1. Open "Edit" -> "Find".
  2. Turn off "Use These Criteria" for all tabs except the "Node Labels" tab.
  3. On the "Node Labels" tab, set criterion "Select" to value "Text" and criterion "Text" to value "Recueil".
  4. Click "Ok". This will select one label with the specified text.
  5. If the selected label is vertical (i.e. its "Rotation Angle" is "270") and its "Size" policy is "Fit Node Width", delete the selected label; otherwise leave it be.
  6. Press F3 to select the next label that satisfies your search criteria.
  7. Repeat steps 5 to 6 until there are no more problematic labels.

When you are done deleting labels, use yEd's "Fit Content" action (see yEd's tool bar, 8th button from the right) to "verify" the result. If all the problematic labels are gone, "Fit Content" will result in a "tight fit" of your diagram in the visible area.

by [yWorks] (134k points)
text value is missing
Legal Disclosure | Privacy Policy