FORMAT_PS,
FORMAT_PDF,
FORMAT_SVG,
+ FORMAT_EPS,
} format_type;
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(A[0]))
if (cr == NULL) {
switch (job->render.id) {
case FORMAT_PS:
+ case FORMAT_EPS:
#ifdef CAIRO_HAS_PS_SURFACE
surface = cairo_ps_surface_create_for_stream (writer,
job, job->width, job->height);
+ if (job->render.id == FORMAT_EPS)
+ cairo_ps_surface_set_eps (surface, TRUE);
#endif
break;
case FORMAT_PDF:
{72.,72.}, /* postscript 72 dpi */
};
+static gvdevice_features_t device_features_eps = {
+ GVRENDER_NO_WHITE_BG
+ | 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_pdf = {
GVDEVICE_BINARY_FORMAT
| GVRENDER_NO_WHITE_BG
#endif
#ifdef CAIRO_HAS_PS_SURFACE
{FORMAT_PS, "ps:cairo", -10, NULL, &device_features_ps},
+ {FORMAT_EPS, "eps:cairo", -10, NULL, &device_features_eps},
#endif
#ifdef CAIRO_HAS_PDF_SURFACE
{FORMAT_PDF, "pdf:cairo", 10, NULL, &device_features_pdf},