How can I generate graph layouts in PDF?

First, create Postscript output, then use an external converter from Postscript to PDF. For example, dot -Tps | epsf2pdf -o file.pdf Note that URL tags are respected, to allow clickable PDF objects.

If your intention is to use the figure as PDF in some document preparation system, such as pdflatex, it is very important to use -Tps2 rather than -Tps. In general, if you really want PDF output, that is, you would like to have a -Tpdf flag, use -Tps2 before converting to PDF.

In the diagram below, the shaded nodes will contain bad output.


GraphvizWiki: FaqPDF (last edited 2008-01-16 20:02:41 by H-135-207-131-158)

Recent comments