Some applications legitmately handle PDF files with a transparent background,
so don't get in the way of that.
surface = cairo_pdf_surface_create (output_filename, width, height);
cr = cairo_create (surface);
surface = cairo_pdf_surface_create (output_filename, width, height);
cr = cairo_create (surface);
- /* Clear background */
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); /* white */
- cairo_paint (cr);
-
rsvg_handle_render_cairo (handle, cr);
status = cairo_status (cr);
rsvg_handle_render_cairo (handle, cr);
status = cairo_status (cr);