cairo-renderer-pdf-out.cpp revision 35636e0c762d50c37515a072b12bdc0197afd24c
#ifdef HAVE_CONFIG_H
# include <config.h>
#ifdef HAVE_CAIRO_PDF
#include "cairo-renderer-pdf-out.h"
#include "cairo-render-context.h"
#include "cairo-renderer.h"
#include "latex-text-renderer.h"
#include <print.h>
#include "display/canvas-bpath.h"
#include "sp-item.h"
#include "sp-root.h"
#include "document.h"
namespace Inkscape {
namespace Extension {
namespace Internal {
bool result = true;
result = false;
return result;
if (!base) {
if(ret) {
if (ret) {
delete renderer;
return ret;
CairoRendererPdfOutput::save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename)
unsigned int ret;
int level = 0;
bool new_exportCanvas = true;
float new_bleedmargin_px = 0.;
if (!ret)
if (new_textToLaTeX) {
ret = latex_render_document_text_to_file(doc, filename, new_exportId, new_exportDrawing, new_exportCanvas, new_bleedmargin_px, true);
if (!ret)
#include "clear-n_.h"
"<id>org.inkscape.output.pdf.cairorenderer</id>\n"
"<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">false</param>\n"
"<param name=\"textToLaTeX\" gui-text=\"" N_("PDF+LaTeX: Omit text in PDF, and create LaTeX file") "\" type=\"boolean\">false</param>\n"
"<param name=\"blurToBitmap\" gui-text=\"" N_("Rasterize filter effects") "\" type=\"boolean\">true</param>\n"
"<param name=\"resolution\" gui-text=\"" N_("Resolution for rasterization (dpi):") "\" type=\"int\" min=\"1\" max=\"10000\">90</param>\n"
"<param name=\"bleed\" gui-text=\"" N_("Bleed/margin (mm):") "\" type=\"float\" min=\"-10000\" max=\"10000\">0</param>\n"
"<param name=\"exportId\" gui-text=\"" N_("Limit export to the object with ID:") "\" type=\"string\"></param>\n"
"<mimetype>application/pdf</mimetype>\n"