Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002494graphvizDotpublic2014-10-13 11:122014-10-13 12:07
Reporterginzel 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Summary0002494: two pages: PS one file, PDF two files
Descriptiondot -V
dot - graphviz version 2.38.0 (20140413.2041)

OK:
dot -Tps -O bug_two_pages.dot
Creates one ps file "" with two pages.

Probably bug:
dot -Tpdf -O bug_two_pages.dot
Creates two separate pdf files "bug_two_pages.dot.pdf"
and "bug_two_pages.dot.2.pdf" with each graph.

Buggy:
dot -Tpdf -ographs.pdf bug_two_pages.dot
Creates one pdf file graphs.pdf with first graph and sends second graph in pdf
format to stdout. (!)
Steps To Reproducedot -Tpdf -O bug_two_pages.dot
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38.0
Attached Filesdot file icon bug_two_pages.dot (Attachment missing)

- Relationships

-  Notes
User avatar (0000833)
erg (administrator)
2014-10-13 12:07

This is actually the correct behavior, though the documentation needs to be clearer. Basically, if the input contains multiple graphs, three things might occur. If the output format allows multiple pages (and we handle it in Graphviz), all of the graphs are written to a single file, generating the name automatically if -O is given. If not and the -O flag is given, one output file is used per graph. If -O is not given, the first graph is written to any file specified by -o, if any, and the rest are written to stdout.

One might flip the logic, so that if -O is given, one always uses one file per graph regardless of the format.

Also, I'm sure both svg and pdf handle multiple pages. It would nice to be able to use this, if we ever have time.

- Issue History
Date Modified Username Field Change
2014-10-13 11:12 ginzel New Issue
2014-10-13 11:12 ginzel File Added: bug_two_pages.dot
2014-10-13 12:07 erg Note Added: 0000833


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker