Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
cairo-renderer-pdf-out.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * A quick hack to use the Cairo renderer to write out a file. This
4 * then makes 'save as...' PDF.
5 *
6 * Authors:
7 * Ted Gould <ted@gould.cx>
8 * Ulf Erikson <ulferikson@users.sf.net>
9 *
10 * Copyright (C) 2004-2006 Authors
11 *
12 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
13 */
14
15#ifndef EXTENSION_INTERNAL_CAIRO_RENDERER_PDF_OUT_H
16#define EXTENSION_INTERNAL_CAIRO_RENDERER_PDF_OUT_H
17
19
20namespace Inkscape {
21namespace Extension {
22namespace Internal {
23
25
26public:
27 bool check(Inkscape::Extension::Extension *module) override;
29 SPDocument *doc,
30 gchar const *filename) override;
31 static void init();
32};
33
34struct PDFOptions {
35 bool text_to_path : 1;
36 bool text_to_latex : 1;
38 bool drawing_only : 1;
39 bool stretch_to_fit : 1;
40};
41
42} } } /* namespace Inkscape, Extension, Internal */
43
44#endif /* !EXTENSION_INTERNAL_CAIRO_RENDERER_PDF_OUT_H */
45
46/*
47 Local Variables:
48 mode:c++
49 c-file-style:"stroustrup"
50 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51 indent-tabs-mode:nil
52 fill-column:99
53 End:
54*/
55// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
The object that is the basis for the Extension system.
Definition extension.h:133
Base class for all implementations of modules.
static void init()
A function allocate a copy of this function.
void save(Inkscape::Extension::Output *mod, SPDocument *doc, gchar const *filename) override
This function calls the output module with the filename.
bool check(Inkscape::Extension::Extension *module) override
Verify any dependencies.
Typed SVG document implementation.
Definition document.h:101
Helper class to stream background task notifications as a series of messages.
bool stretch_to_fit
Compensate for Cairo's page size rounding to integers (in pt)?
bool rasterize_filters
Rasterize filter effects?
bool drawing_only
Set page size to drawing + margin instead of document page.
bool text_to_latex
Put text in a LaTeX document?