]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1238 - PDF output is binary.
authorerg <devnull@localhost>
Mon, 26 Nov 2007 18:13:53 +0000 (18:13 +0000)
committererg <devnull@localhost>
Mon, 26 Nov 2007 18:13:53 +0000 (18:13 +0000)
plugin/pango/gvrender_pango.c

index c5b81853b33ffe2f2e554afdb60f4496ef818c3a..1e32f928117da7e2aec5b3167e0f8ccf27496fdd 100644 (file)
@@ -408,6 +408,14 @@ static gvdevice_features_t device_features_ps = {
     {72.,72.},                 /* postscript 72 dpi */
 };
 
+static gvdevice_features_t device_features_pdf = {
+    GVDEVICE_BINARY_FORMAT
+      | GVDEVICE_DOES_TRUECOLOR,/* flags */
+    {36.,36.},                 /* default margin - points */
+    {0.,0.},                    /* default page width, height - points */
+    {72.,72.},                 /* postscript 72 dpi */
+};
+
 static gvdevice_features_t device_features_svg = {
     GVDEVICE_DOES_TRUECOLOR,    /* flags */
     {0.,0.},                   /* default margin - points */
@@ -432,7 +440,7 @@ gvplugin_installed_t gvdevice_pango_types[] = {
     {FORMAT_PS, "ps:cairo", -10, NULL, &device_features_ps},
 #endif
 #ifdef CAIRO_HAS_PDF_SURFACE
-    {FORMAT_PDF, "pdf:cairo", 10, NULL, &device_features_ps},
+    {FORMAT_PDF, "pdf:cairo", 10, NULL, &device_features_pdf},
 #endif
 #ifdef CAIRO_HAS_SVG_SURFACE
     {FORMAT_SVG, "svg:cairo", -10, NULL, &device_features_svg},