Skip Menu |

This queue is for tickets about the GraphViz CPAN distribution.

Report information
The Basics
Id: 44756
Status: resolved
Priority: 0/
Queue: GraphViz

People
Owner: Nobody in particular
Requestors: kevin.keraudren [...] student.ecp.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: enabling PDF output
Date: Thu, 02 Apr 2009 18:21:30 +0200
To: bug-GraphViz [...] rt.cpan.org
From: Kevin Keraudren <kevin.keraudren [...] student.ecp.fr>
Hi, I wanted a PDF output with SQL::Translator which uses GraphViz, so I just added "pdf" line 993 of lib/GraphViz.pm : if ( $name =~ /^as_(ps|pdf|hpgl|pcl|mif|pic|gd|gd2|gif|jpeg|png|wbmp|cmapx?|ismap|imap|vrml|vtx|mp|fig|svgz?|dot|canon|plain)$/ ) Cordially, Kevin Keraudren
Subject: [rt.cpan.org #44756] already corrected in Philip Kime's patch
Date: Thu, 02 Apr 2009 19:44:54 +0200
To: bug-GraphViz [...] rt.cpan.org
From: Kevin Keraudren <kevin.keraudren [...] student.ecp.fr>
This correction has been already proposed in Philip Kime's patch.
From: peter.oliver [...] eon-is.co.uk
On Thu Apr 02 12:21:52 2009, kevin.keraudren@student.ecp.fr wrote: Show quoted text
> I wanted a PDF output with SQL::Translator which uses GraphViz, so I > just added "pdf" line 993 of lib/GraphViz.pm
The attached patch adds PDF and may other formats supported by newer versions of GraphViz.
diff -ur GraphViz-2.04~/lib/GraphViz.pm GraphViz-2.04/lib/GraphViz.pm --- GraphViz-2.04~/lib/GraphViz.pm 2008-12-12 21:31:42.000000000 +0000 +++ GraphViz-2.04/lib/GraphViz.pm 2009-12-09 14:55:33.000000000 +0000 @@ -910,6 +913,15 @@ print $g->as_cmapx; +=item as_cmapx_np + +Returns a string which contains a layed-out HTML HTML/X client-side +image map format file that relys solely on rectangles as active +areas. Name and id attributes of map element are set to name of the +graph. + + print $g->as_cmapx; + =item as_ismap (deprecated) Returns a string which contains a layed-out old-style server-side @@ -924,6 +936,13 @@ print $g->as_imap; +=item as_imap_np + +Returns a string which contains a layed-out HTML new-style server-side +image map format file that relys solely on rectangles as active areas. + + print $g->as_imap; + =item as_vrml Returns a string which contains a layed-out VRML-format file. @@ -962,6 +981,66 @@ print $g->as_svgz; +=item as_bmp + +Returns a string which contains a Windows Bitmap. + + print $g->as_bmp; + +=item as_dia + +Returns a string which contains a Dia diagram. + + print $g->as_dia; + +=item as_eps + +Returns a string which contains Encapsulated PostScript. + + print $g->as_eps; + +=item as_pdf + +Returns a string in the Portable Document Format. + + print $g->as_pdf; + +=item as_tga + +Returns a string which contains a Truevision TGA image. + + print $g->as_tga; + +=item as_tiff + +Returns a string in the Tagged Image File Format. + + print $g->as_tiff; + +=item as_tk + +Returns a string which contains a Tcl/Tk program. + + print $g->as_tk; + +=item as_vdx + +Returns a string which contains a Visio XML drawing. + + print $g->as_vdx; + +=item as_vml + +Returns a string which contains Vector Markup Language. + + print $g->as_vml; + +=item as_vmlz + +Returns a string which contains compressed Vector Markup Language. + + print $g->as_vmlz; + =item as_plain Returns a string which contains a layed-out simple-format file. @@ -990,7 +1069,7 @@ } if ( $name - =~ /^as_(ps|hpgl|pcl|mif|pic|gd|gd2|gif|jpeg|png|wbmp|cmapx?|ismap|imap|vrml|vtx|mp|fig|svgz?|dot|canon|plain)$/ + =~ /^as_(bmp|canon|cmap|cmapx|cmapx_np|dot|dia|eps|fig|gd|gd2|gif|hpgl|imap|imap_np|ismap|jpeg|mif|mp|pcl|pdf|pic|plain|png|ps|svg|svgz|tga|tiff|tk|vdx|vml|vmlz|vrml|vtx|wbmp)$/ ) { my $data = $self->_as_generic( '-T' . $1, $self->_as_debug, $output );
This issue is fixed in GraphViz2 V 1.00. You can now pass any options to the underlying dot/whatever. There're won't be any further development on GraphViz.