From: erg Date: Mon, 26 Nov 2007 18:13:53 +0000 (+0000) Subject: Fix bug 1238 - PDF output is binary. X-Git-Tag: LAST_LIBGRAPH~32^2~4997 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=242d07fac103e0358a70b2030dee3ff3a333cd97;p=graphviz Fix bug 1238 - PDF output is binary. --- diff --git a/plugin/pango/gvrender_pango.c b/plugin/pango/gvrender_pango.c index c5b81853b..1e32f9281 100644 --- a/plugin/pango/gvrender_pango.c +++ b/plugin/pango/gvrender_pango.c @@ -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},