After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357655 - "Print to SVG file" for GtkPrintOperation
"Print to SVG file" for GtkPrintOperation
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
2.10.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-09-25 18:03 UTC by Luke Hutchison
Modified: 2009-08-03 09:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
support for printing to SVG files (4.52 KB, patch)
2009-07-29 11:50 UTC, Marek Kašík
committed Details | Review

Description Luke Hutchison 2006-09-25 18:03:11 UTC
It would be very helpful (now that cairo supports SVG output) for GtkPrintOperation to support printing to an SVG file as well as PDF and PS.  This would allow any print output to be loaded into Inkscape or similar for postprocessing.  (Inkscape doesn't support PDF import yet.)

Regular SVG only supports single-page figures, so the output of a multipage printjob would have to be either an archive of SVG files, or an SVGPrint document (multipage SVG).
Comment 1 Matthias Clasen 2009-05-23 05:02:59 UTC
The cairo svg surface can do multi-page nowadays, so this would make some more sense.
Comment 2 Marek Kašík 2009-07-29 11:50:51 UTC
Created attachment 139465 [details] [review]
support for printing to SVG files

Hi,

this patch adds support for printing to SVG files. Generated SVGs are of version 1.2 to be able to print multiple pages.

Marek

BTW: cool feature :)
Comment 3 Luke Hutchison 2009-07-29 18:48:56 UTC
Awesome, thanks Marek!!
Comment 4 Matthias Clasen 2009-07-30 14:14:31 UTC
Looks good to me.
Comment 5 Marek Kašík 2009-08-03 09:43:44 UTC
Committed:

    Add SVG support to GtkPrintBackendFile
    
    This add support for printing to SVG 1.2 files (#357655).

Marek