Inkscape
Vector Graphics Editor
|
#include <pdf-input.h>
Public Member Functions | |
std::unique_ptr< SPDocument > | open (Inkscape::Extension::Input *mod, char const *uri, bool is_importing) override |
Parses the selected page of the given PDF document using PdfParser. | |
![]() | |
Implementation ()=default | |
virtual | ~Implementation ()=default |
virtual bool | load (Inkscape::Extension::Extension *) |
virtual void | unload (Inkscape::Extension::Extension *) |
virtual ImplementationDocumentCache * | newDocCache (Inkscape::Extension::Extension *, SPDesktop *) |
Create a new document cache object. | |
virtual bool | check (Inkscape::Extension::Extension *) |
Verify any dependencies. | |
virtual bool | cancelProcessing () |
virtual void | commitDocument () |
virtual std::unique_ptr< SPDocument > | new_from_template (Inkscape::Extension::Template *) |
virtual void | get_template_presets (const Template *tmod, TemplatePresets &presets) const |
virtual void | resize_to_template (Inkscape::Extension::Template *tmod, SPDocument *doc, SPPage *page) |
virtual bool | match_template_size (Inkscape::Extension::Template *tmod, double width, double height) |
virtual void | save (Inkscape::Extension::Output *, SPDocument *, gchar const *) |
Find out information about the file. | |
virtual void | export_raster (Inkscape::Extension::Output *module, const SPDocument *doc, std::string const &png_file, gchar const *filename) |
Convert from PNG to raster format. | |
virtual Gtk::Widget * | prefs_effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, sigc::signal< void()> *changeSignal, ImplementationDocumentCache *docCache) |
Find out information about the file. | |
virtual void | effect (Inkscape::Extension::Effect *, ExecutionEnv *, SPDesktop *, ImplementationDocumentCache *) |
virtual void | effect (Inkscape::Extension::Effect *, ExecutionEnv *, SPDocument *document) |
virtual bool | apply_filter (Inkscape::Extension::Effect *module, SPItem *item) |
virtual unsigned | setup (Inkscape::Extension::Print *) |
virtual unsigned | set_preview (Inkscape::Extension::Print *) |
virtual unsigned | begin (Inkscape::Extension::Print *, SPDocument *) |
virtual unsigned | finish (Inkscape::Extension::Print *) |
virtual bool | textToPath (Inkscape::Extension::Print *) |
Tell the printing engine whether text should be text or path. | |
virtual bool | fontEmbedded (Inkscape::Extension::Print *) |
Get "fontEmbedded" param, i.e. | |
virtual unsigned | bind (Inkscape::Extension::Print *, Geom::Affine const &, float) |
virtual unsigned | release (Inkscape::Extension::Print *) |
virtual unsigned | fill (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &) |
virtual unsigned | stroke (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &) |
virtual unsigned | image (Inkscape::Extension::Print *, unsigned char *, unsigned int, unsigned int, unsigned int, Geom::Affine const &, SPStyle const *) |
virtual unsigned | text (Inkscape::Extension::Print *, char const *, Geom::Point const &, SPStyle const *) |
virtual void | processPath (Inkscape::XML::Node *) |
virtual void | setDetachBase (bool detach) |
If detach = true, when saving to a file, don't store URIs relative to the filename. | |
Static Public Member Functions | |
static void | init () |
Private Member Functions | |
void | add_builder_page (std::shared_ptr< PDFDoc > pdf_doc, SvgBuilder *builder, SPDocument *doc, int page_num) |
Parses the selected page object of the given PDF document using PdfParser. | |
Definition at line 135 of file pdf-input.h.
|
private |
Parses the selected page object of the given PDF document using PdfParser.
Definition at line 775 of file pdf-input.cpp.
References builder, Inkscape::XML::Node::getAttributeDouble(), Inkscape::XML::Node::getAttributeInt(), Page, page, and Inkscape::size.
Referenced by open().
|
static |
Definition at line 842 of file pdf-input.cpp.
References Inkscape::Extension::build_from_mem().
Referenced by Inkscape::Extension::init().
|
overridevirtual |
Parses the selected page of the given PDF document using PdfParser.
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 587 of file pdf-input.cpp.
References Inkscape::Extension::Internal::_write_ustring_cb(), add_builder_page(), Inkscape::Extension::Internal::SvgBuilder::autoFontStrategies(), builder, SPDocument::createNewDoc(), SPDocument::createNewDocFromMem(), dot(), Geom::GenericRect< Coord >::from_xywh(), getPdfFonts(), Inkscape::DocumentUndo::getUndoSensitive(), height, page, Inkscape::parseIntRange(), Inkscape::PDF_IMPORT_CAIRO, Inkscape::PDF_IMPORT_INTERNAL, Inkscape::DocumentUndo::setUndoSensitive(), surface, and width.