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 
PlatformOSx86-Linux- Version
Summary0001840: Problem with multiple pages

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

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:
$ diff rel_graph_3_pages.gv.orig rel_graph_3_pages.gv
< margin="0.51,0.51";
< page="11.69,8.27";
< pagedir="BL";
> // margin="0.51,0.51";
> page="8.5,11"
> landscape="true";
> // pagedir="BL";

then processed with:

    dot -Tps rel_graph_3_pages.gv | ps2pdf - rel_graph_3_pages.pdf

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

and viewed with:

    evince rel_graph_3_pages.pdf

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:
dot -Tps:cairo -o"/home/peter/tmp/" "/home/peter/tmp/tmp_WxDxb.gv"
cairo: out of memory
cairo: out of memory

sOutputFile="/home/peter/GRAMPSUTDATA/GRAFER/rel_graph3P_26_2.pdf" "/home/peter/tmp/" -c

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)

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

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

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 ...

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.
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