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.

PDF export with size of the exported diagram

+3 votes

Currently, no matter how small the diagram is, the page size is always an entire DIN A4 page (with the exported diagram centered on it).

It would be nice, if the PDF's "page" size could adapt to the actual size of the exported diagram, i.e. become smaller than A4.
In particular, this would facilitate using (importing) the exported PDF in other documents.

asked Sep 27, 2011 in Finished Features by yEd user (3,340 points)
retagged Jun 18, 2012 by michael
Thas the same with bigger formats:

No matter how big the diagram, the page size is always an A4 format.
No, it is not. The page size is exactly what is specified on tab "PDF", option "Paper Size" if "Automatic Page Settings" is disabled. However, PDF export only downscales diagrams to fit into the desired size, it never upscales diagrams if there is excess space. And that is the way it is meant to be. Every half-way decent PDF viewer lets you scale your document to fit the chosen paper size on print, so simply stick with "Automatic Page Settings" enabled and let your PDF viewer do the scaling.
So, export PDF and printing are two different things ?
Yes, of course. PDF export creates PDF document on your hard drive. Printing on the other hand uses your operating system's printing framework to produce some kind of output.
This is a great feature: but I need some more North American paper sizes - like legal.  Right now only Letter is listed along with all the European A# sizes... Any chance this can be done easily?
Well, feel free to post a corresponding feature request (including the desired paper sizes).
However, I would like to ask why you need additional paper sizes, because (as the second comment explains) these are *not* required for printing your PDFs on paper size legal (or any other size).
Thomas, there is one big reason:  printing to PDF, using the Adobe drivers, produces a bit map of the yEd drawing embedded in the PDF.  Exporting to a PDF produces a vector graphic of the yEd drawing.

Bit maps have problems when you want to scale etc.

But I've noticed a problem with PDF export (irrespective of paper size).  It can't do the three colour shading properly (it reduces it to just two colours).  

So right now my work-around is to export to svg then open in Inkscape and save as PDF from there.  Then the shading appears OK and I can set the paper size.

Thoughts... is this a bug in the PDF export?
I think there has been a misunderstanding. What I would like to know is what you are doing with your PDF documents. If you simply print those on paper, you do not need additional paper sizes. You can choose yEd's "Automatic Page Settings" when exporting and when printing on paper have your PDF viewer fit the output on any chosen paper size.

The problem with "three colour shading" (though not a bug but a missing feature) will be fixed in yEd 3.10.2 (which will be released this week).
Thomas,

Great to hear the 3 colour shading in PDF will be working soon.  That's great news.

Great question on what I'm doing with the PDF documents..

You say "have your PDF viewer fit the output on any chosen paper size.".   This is *THE* problem.  Currently, for my diagrams, the paper size chosen by "automatic settings" is much larger than the paper in any printer.  I want to distribute a file to people and not have to remind them to click on the "fit to paper size" when printing (in this case its for a thesis).  

One practical example is when I use a professional printer they want a PDF with the page size I desire *IN* the file.   There is too much room for error putting page size information in a covering email - i.e. "please print the attached PDF on A3 paper" (when the page size in the file is 60cm x 90cm)

As far as I can tell the only way of changing the page size in a PDF file once its been created is to spend $50-$150 on a 3rd party tool.  Even Adobe Acrobat Professional doesn't allow this (without printing using the PDF driver and then it tends to turn the file into a bitmap - to my earlier comment).

I've the lack of this feature in Adobe Acrobat found this very odd... so perhaps I'm wrong... but I've been looking around and I can't find another option - hence back to the "choose the paper size in yED" question.

Does that help understand the challenge?
Thank you very much for the clarification of your use case.

Please do create a corresponding feature request and list the desired paper sizes.

2 Answers

0 votes
Under linux you can use natively pdfcrop to trim the diagram. But if you use the trimmed diagram in latex documents you have to scale it manually to fit the text in lables to the document text.
answered Dec 12, 2011 by qpid (160 points)
0 votes
Supported as of yEd 3.9.2.
answered Jun 15, 2012 by thomas.behr [yWorks] (127,200 points)
Legal Disclosure | Privacy Policy