cairo-ps-out.cpp revision 8b3029bd0a3714c78a4d2865dd04e30f71d40085
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * A quick hack to use the Cairo renderer to write out a file. This
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * then makes 'save as...' PS.
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * Ted Gould <ted@gould.cx>
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * Ulf Erikson <ulferikson@users.sf.net>
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * Adib Taraben <theAdib@yahoo.com>
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * Copyright (C) 2004-2006 Authors
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński * Released under GNU GPL, read the file 'COPYING' for more information
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof KosińskiCairoPsOutput::check (Inkscape::Extension::Extension * module)
16a8c7d5e433b176636a4a1260c42ea43932110bKrzysztof Kosiński if (NULL == Inkscape::Extension::db.get(SP_MODULE_KEY_PRINT_CAIRO_PS))
return TRUE;}
ps_print_document_to_file(SPDocument *doc, gchar const *filename, unsigned int level, bool texttopath, bool filtertobitmap, int resolution)
if(ret) {
if (ret) {
delete renderer;
return ret;
unsigned int ret;
level = 0;
ret = ps_print_document_to_file(doc, final_name, level, new_textToPath, new_blurToBitmap, new_bitmapResolution);
if (!ret)
#include "clear-n_.h"
"<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">false</param>\n"
"<param name=\"blurToBitmap\" gui-text=\"" N_("Convert blur effects to bitmaps") "\" type=\"boolean\">false</param>\n"
"<param name=\"resolution\" gui-text=\"" N_("Preferred resolution (DPI) of bitmaps") "\" type=\"int\" min=\"72\" max=\"2400\">90</param>\n"
"<mimetype>application/ps</mimetype>\n"