Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001840graphvizDotpublic2010-03-18 12:222011-04-28 04:03
ReporterPeter Landgren 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSx86-Linux-2.26.31.12OS Version
Summary0001840: Problem with multiple pages
Description



Problem with multiple pages via *.ps -> *.pdf using ghostscript
In 2.24 it was possible to produce nice multiple pages output by using postscript
and then ghostscript to get a pdf output.
Now with 2.26.3 I cant' get this to work. I get only the first page of three in
the attached case.
Additional Information


[ellson]
Could you send me your .ps output?

Basically it works for me with our latest graphviz snapshot - but I don't recall any fixes that would affect this.

I made this change to your source:
<CD>
$ diff rel_graph_3_pages.gv.orig rel_graph_3_pages.gv
9d8
< margin="0.51,0.51";
13,14c12,15
< page="11.69,8.27";
< pagedir="BL";
---
> // margin="0.51,0.51";
> page="8.5,11"
> landscape="true";
> // pagedir="BL";
</CD>


then processed with:

<CD>
    dot -Tps rel_graph_3_pages.gv | ps2pdf - rel_graph_3_pages.pdf
</CD>

(ps2pdf from: ghostscript-8.71-4.fc12)

and viewed with:

<CD>
    evince rel_graph_3_pages.pdf
</CD>

[peter]
Thanks for fast response!

I have created a 3 pages pdf output and kept the two intermediate files, which normally are deleted.
I use Gramps and we are working a way to get all children with or without. spouses in birth order
This seems to be tricky. It works for a "vertical" family tree, but not for a "horizontal".

I any case the commands to create the files are:
<CD>
dot -Tps:cairo -o"/home/peter/tmp/tmpovyg3v.ps" "/home/peter/tmp/tmp_WxDxb.gv"
cairo: out of memory
cairo: out of memory
</CD>

and
<CD>
gs -q -sDEVICE=pdfwrite -dNOPAUSE -dDEVICEWIDTHPOINTS=842 -dDEVICEHEIGHTPOINTS=595 -
sOutputFile="/home/peter/GRAMPSUTDATA/GRAFER/rel_graph3P_26_2.pdf" "/home/peter/tmp/tmpovyg3v.ps" -c
quit
</CD>

As you see I get two out of memory.

If I use the command
dot -Tps rel_graph3P_26_2.gv | ps2pdf - rel_graph3P_26_4.pdf

I get rel_graph3P_26_4.pdf with three pages.

(I have renamed the temporary files.)

(evince from: evince-2.28.2-1.fc12)

[erg]
rel_graph3P_26_2.gv is \<A HREF="b1906a.gv"\>here\</A\>.

rel_graph3P_26_2.ps is \<A HREF="b1906.ps"\>here\</A\>.

rel_graph3P_26_2.pdf is \<A HREF="b1906.pdf"\>here\</A\>.

[peter]
I have another question regarding this type of graph.
We have now a correct graph if we have a vertical family tree.
The order of children changes when I create a horizontal family tree just by changing
rankdir="TB" to rankdir="RL"

This is obviously not enough to get the correct order. What should we do to achieve this?

I know this is a little bit off topic, but ...

[ellson]
Trying to manually control layout in dot is generally an uphill battle, but you could try:

    graph [ordering=out]

which is documented as:

    If "out" for a graph G, and n is a node in G, then edges n->* appear left-to-right in the same order in which they are defined. If "in", the edges *->n appear left-to-right in the same order in which they are defined for all nodes n.


Sometimes you can also control layout by adding invisible edges.

TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b1906a.gv [^] http://www.graphviz.org/bugs/b1906.ps [^] http://www.graphviz.org/bugs/b1906.pdf [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID1906
INPUT-FILEhttp://www.graphviz.org/bugs/b1906.gv [^]
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


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