graphviz - Render DOT script with multiple graphs to PDF one graph per page -


i have large dot script multiple graphs defined in it:

digraph tree0 {   ... }  digraph tree1 {   ... { ... 

i can render postscript file each graph on separate page calling dot -tps forest.dot -o forest.ps. however, performance reasons prefer pdf on postscript (scrolling , zooming smoother). if use same command pdf instead of ps, resulting file contains 1 of graphs , looks rest written stdout.

converting ps pdf ps2pdf did not work, graphs , pages of ps file have varying size resulting pdf file have fixed page size, cutting away parts of graphs.

is there easy way multi-graph pdf dot, works ps file? if not, how can convert ps pdf , keep varying page size?

what this: dot -tps2 forest.gv -o forest.ps | ps2pdf forest.ps

the main difference uses -tps2. according documentation:

ps2 produces postscript output pdf notations. assumed output directly converted pdf format. notations include pdf bounding box information, resulting pdf file can correctly used pdf tools, such pdflatex. in addition, if node has url attribute, gets translated pdf code such node, when viewed in pdf-viewer, e.g., acroread, link given url. if url attached graph, serves base, such relative urls on nodes derived it.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -