Inkscape
Vector Graphics Editor
|
PDF parsing module using libpoppler's facilities. More...
#include <pdf-parser.h>
Public Member Functions | |
PdfParser (std::shared_ptr< PDFDoc > pdf_doc, SvgBuilder *builderA, Page *page, _POPPLER_CONST PDFRectangle *cropBox) | |
PdfParser (XRef *xrefA, SvgBuilder *builderA, Dict *resDict, _POPPLER_CONST PDFRectangle *box) | |
virtual | ~PdfParser () |
void | parse (Object *obj, GBool topLevel=gTrue) |
void | saveState () |
void | restoreState () |
GfxState * | getState () |
void | setApproximationPrecision (int shadingType, double colorDelta, int maxDepth) |
void | loadOptionalContentLayers (Dict *resources) |
void | loadPatternColorProfiles (Dict *resources) |
void | loadColorProfile () |
void | loadColorSpaceProfile (GfxColorSpace *space, Object *obj) |
std::unique_ptr< GfxPattern > | lookupPattern (Object *obj, GfxState *state) |
Look up pattern/gradients from the GfxResource dictionary. | |
std::shared_ptr< CairoFontEngine > | getFontEngine () |
void | build_annots (const Object &annot, int page_num) |
Private Member Functions | |
std::unique_ptr< GfxColorSpace > | lookupColorSpaceCopy (Object &) |
Get a newly allocated color space instance by CS operation argument. | |
void | setDefaultApproximationPrecision () |
void | pushOperator (const char *name) |
OpHistoryEntry * | popOperator () |
const char * | getPreviousOperator (unsigned int look_back=1) |
void | go (GBool topLevel) |
void | execOp (Object *cmd, Object args[], int numArgs) |
PdfOperator * | findOp (const char *name) |
GBool | checkArg (Object *arg, TchkType type) |
int | getPos () |
void | opOptionalContentGroup (Object args[], int numArgs) |
void | opSave (Object args[], int numArgs) |
void | opRestore (Object args[], int numArgs) |
void | opConcat (Object args[], int numArgs) |
Concatenate transformation matrix to the current state. | |
void | opSetDash (Object args[], int numArgs) |
void | opSetFlat (Object args[], int numArgs) |
void | opSetLineJoin (Object args[], int numArgs) |
void | opSetLineCap (Object args[], int numArgs) |
void | opSetMiterLimit (Object args[], int numArgs) |
void | opSetLineWidth (Object args[], int numArgs) |
void | opSetExtGState (Object args[], int numArgs) |
void | doSoftMask (Object *str, GBool alpha, GfxColorSpace *blendingColorSpace, GBool isolated, GBool knockout, Function *transferFunc, GfxColor *backdropColor) |
void | opSetRenderingIntent (Object args[], int numArgs) |
void | opSetFillGray (Object args[], int numArgs) |
void | opSetStrokeGray (Object args[], int numArgs) |
void | opSetFillCMYKColor (Object args[], int numArgs) |
void | opSetStrokeCMYKColor (Object args[], int numArgs) |
void | opSetFillRGBColor (Object args[], int numArgs) |
void | opSetStrokeRGBColor (Object args[], int numArgs) |
void | opSetFillColorSpace (Object args[], int numArgs) |
void | opSetStrokeColorSpace (Object args[], int numArgs) |
void | opSetFillColor (Object args[], int numArgs) |
void | opSetStrokeColor (Object args[], int numArgs) |
void | opSetFillColorN (Object args[], int numArgs) |
void | opSetStrokeColorN (Object args[], int numArgs) |
void | opMoveTo (Object args[], int numArgs) |
void | opLineTo (Object args[], int numArgs) |
void | opCurveTo (Object args[], int numArgs) |
void | opCurveTo1 (Object args[], int numArgs) |
void | opCurveTo2 (Object args[], int numArgs) |
void | opRectangle (Object args[], int numArgs) |
void | opClosePath (Object args[], int numArgs) |
void | opEndPath (Object args[], int numArgs) |
void | opStroke (Object args[], int numArgs) |
void | opCloseStroke (Object args[], int numArgs) |
void | opFill (Object args[], int numArgs) |
void | opEOFill (Object args[], int numArgs) |
void | opFillStroke (Object args[], int numArgs) |
void | opCloseFillStroke (Object args[], int numArgs) |
void | opEOFillStroke (Object args[], int numArgs) |
void | opCloseEOFillStroke (Object args[], int numArgs) |
void | doFillAndStroke (GBool eoFill) |
void | doPatternFillFallback (GBool eoFill) |
void | doPatternStrokeFallback () |
void | doShadingPatternFillFallback (GfxShadingPattern *sPat, GBool stroke, GBool eoFill) |
void | opShFill (Object args[], int numArgs) |
void | doFunctionShFill (GfxFunctionShading *shading) |
void | doFunctionShFill1 (GfxFunctionShading *shading, double x0, double y0, double x1, double y1, GfxColor *colors, int depth) |
void | doGouraudTriangleShFill (GfxGouraudTriangleShading *shading) |
void | gouraudFillTriangle (double x0, double y0, GfxColor *color0, double x1, double y1, GfxColor *color1, double x2, double y2, GfxColor *color2, int nComps, int depth) |
void | doPatchMeshShFill (GfxPatchMeshShading *shading) |
void | fillPatch (_POPPLER_CONST GfxPatch *patch, int nComps, int depth) |
void | doEndPath () |
void | opClip (Object args[], int numArgs) |
void | opEOClip (Object args[], int numArgs) |
void | opBeginText (Object args[], int numArgs) |
void | opEndText (Object args[], int numArgs) |
void | opSetCharSpacing (Object args[], int numArgs) |
void | opSetFont (Object args[], int numArgs) |
void | opSetTextLeading (Object args[], int numArgs) |
void | opSetTextRender (Object args[], int numArgs) |
void | opSetTextRise (Object args[], int numArgs) |
void | opSetWordSpacing (Object args[], int numArgs) |
void | opSetHorizScaling (Object args[], int numArgs) |
void | opTextMove (Object args[], int numArgs) |
void | opTextMoveSet (Object args[], int numArgs) |
void | opSetTextMatrix (Object args[], int numArgs) |
void | opTextNextLine (Object args[], int numArgs) |
void | doUpdateFont () |
void | opShowText (Object args[], int numArgs) |
void | opMoveShowText (Object args[], int numArgs) |
void | opMoveSetShowText (Object args[], int numArgs) |
void | opShowSpaceText (Object args[], int numArgs) |
void | doShowText (const GooString *s) |
void | doShowText (GooString *s) |
void | opXObject (Object args[], int numArgs) |
void | doImage (Object *ref, Stream *str, GBool inlineImg) |
void | doForm (Object *str, double *offset=nullptr) |
void | doForm1 (Object *str, Dict *resDict, double *matrix, double *bbox, GBool transpGroup=gFalse, GBool softMask=gFalse, GfxColorSpace *blendingColorSpace=nullptr, GBool isolated=gFalse, GBool knockout=gFalse, GBool alpha=gFalse, Function *transferFunc=nullptr, GfxColor *backdropColor=nullptr) |
void | opBeginImage (Object args[], int numArgs) |
Stream * | buildImageStream () |
void | opImageData (Object args[], int numArgs) |
void | opEndImage (Object args[], int numArgs) |
void | opSetCharWidth (Object args[], int numArgs) |
void | opSetCacheDevice (Object args[], int numArgs) |
void | opBeginIgnoreUndef (Object args[], int numArgs) |
void | opEndIgnoreUndef (Object args[], int numArgs) |
void | opBeginMarkedContent (Object args[], int numArgs) |
void | opEndMarkedContent (Object args[], int numArgs) |
void | opMarkPoint (Object args[], int numArgs) |
void | pushResources (Dict *resDict) |
void | popResources () |
Private Attributes | |
std::shared_ptr< PDFDoc > | _pdf_doc |
std::shared_ptr< CairoFontEngine > | _font_engine |
XRef * | xref |
SvgBuilder * | builder |
GBool | subPage |
GBool | printCommands |
GfxResources * | res |
GfxState * | state |
GBool | fontChanged |
GfxClipType | clip |
int | ignoreUndef |
Geom::Affine | baseMatrix |
int | formDepth |
Parser * | parser |
int | colorDeltas [pdfNumShadingTypes] |
int | maxDepths [pdfNumShadingTypes] |
OpHistoryEntry * | operatorHistory |
std::map< std::string, std::unique_ptr< GfxColorSpace > > | colorSpacesCache |
Caches color spaces by name. | |
Static Private Attributes | |
static PdfOperator | opTab [] |
PDF parsing module using libpoppler's facilities.
Definition at line 112 of file pdf-parser.h.
PdfParser::PdfParser | ( | std::shared_ptr< PDFDoc > | pdf_doc, |
SvgBuilder * | builderA, | ||
Page * | page, | ||
_POPPLER_CONST PDFRectangle * | cropBox | ||
) |
Definition at line 266 of file pdf-parser.cpp.
References baseMatrix, builder, Inkscape::Extension::Internal::SvgBuilder::cropPage(), formDepth, getRect(), getString(), label, loadColorProfile(), loadOptionalContentLayers(), page, pushOperator(), Inkscape::Extension::Internal::SvgBuilder::pushPage(), saveState(), scale, setDefaultApproximationPrecision(), Inkscape::Extension::Internal::SvgBuilder::setDocumentSize(), Inkscape::Extension::Internal::SvgBuilder::setMargins(), Inkscape::Extension::Internal::SvgBuilder::setMetadata(), state, and stateToAffine().
PdfParser::PdfParser | ( | XRef * | xrefA, |
SvgBuilder * | builderA, | ||
Dict * | resDict, | ||
_POPPLER_CONST PDFRectangle * | box | ||
) |
Definition at line 329 of file pdf-parser.cpp.
References baseMatrix, formDepth, setDefaultApproximationPrecision(), state, and stateToAffine().
|
virtual |
Definition at line 352 of file pdf-parser.cpp.
References OpHistoryEntry::next, operatorHistory, popResources(), res, restoreState(), state, and subPage.
void PdfParser::build_annots | ( | const Object & | annot, |
int | page_num | ||
) |
Referenced by doShowText().
|
private |
Referenced by doShowText().
|
private |
Definition at line 585 of file pdf-parser.cpp.
Referenced by execOp().
|
private |
Definition at line 1978 of file pdf-parser.cpp.
References builder, clip, Inkscape::Extension::Internal::SvgBuilder::setClip(), and state.
Referenced by opCloseEOFillStroke(), opCloseFillStroke(), opCloseStroke(), opEndPath(), opEOFill(), opEOFillStroke(), opFill(), opFillStroke(), and opStroke().
|
private |
Definition at line 1446 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doPatternFillFallback(), doPatternStrokeFallback(), Inkscape::Extension::Internal::SvgBuilder::isPatternTypeSupported(), and state.
Referenced by opCloseEOFillStroke(), opCloseFillStroke(), opEOFillStroke(), and opFillStroke().
|
private |
Referenced by doShowText().
|
private |
Referenced by doShowText(), and doSoftMask().
|
private |
Definition at line 1642 of file pdf-parser.cpp.
References doFunctionShFill1().
Referenced by doShadingPatternFillFallback(), and opShFill().
|
private |
Definition at line 1654 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, c, colorDeltas, doFunctionShFill1(), maxDepths, and state.
Referenced by doFunctionShFill(), and doFunctionShFill1().
|
private |
Definition at line 1762 of file pdf-parser.cpp.
References gouraudFillTriangle().
Referenced by doShadingPatternFillFallback(), and opShFill().
|
private |
Referenced by doShowText().
|
private |
Definition at line 1824 of file pdf-parser.cpp.
References fillPatch(), and start.
Referenced by doShadingPatternFillFallback(), and opShFill().
|
private |
Definition at line 1464 of file pdf-parser.cpp.
References doShadingPatternFillFallback(), getPos(), and state.
Referenced by doFillAndStroke(), opEOFill(), and opFill().
|
private |
Definition at line 1483 of file pdf-parser.cpp.
References doShadingPatternFillFallback(), getPos(), and state.
Referenced by doFillAndStroke(), opCloseStroke(), and opStroke().
|
private |
Definition at line 1502 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), baseMatrix, builder, ctmToAffine(), doFunctionShFill(), doGouraudTriangleShFill(), doPatchMeshShFill(), Geom::Affine::inverse(), restoreState(), saveState(), state, stateToAffine(), and stroke.
Referenced by doPatternFillFallback(), and doPatternStrokeFallback().
|
private |
Optional content groups are often used in ai files, but not always and can be useful ways of collecting objects.
Load the internal ICC profile from the PDF file.
Definition at line 2262 of file pdf-parser.cpp.
References _pdf_doc, Inkscape::Extension::Internal::SvgBuilder::addChar(), Inkscape::Extension::Internal::SvgBuilder::addColorProfile(), Inkscape::Extension::Internal::SvgBuilder::addImage(), Inkscape::Extension::Internal::SvgBuilder::addImageMask(), Inkscape::Extension::Internal::SvgBuilder::addMaskedImage(), Inkscape::Extension::Internal::SvgBuilder::addOptionalGroup(), Inkscape::Extension::Internal::SvgBuilder::addSoftMaskedImage(), baseMatrix, Inkscape::Extension::Internal::SvgBuilder::beginLayer(), Inkscape::Extension::Internal::SvgBuilder::beginMarkedContent(), Inkscape::Extension::Internal::SvgBuilder::beginString(), build_annots(), builder, buildImageStream(), colorDeltas, doForm(), doForm1(), doImage(), doShowText(), Inkscape::Extension::Internal::SvgBuilder::endLayer(), Inkscape::Extension::Internal::SvgBuilder::endMarkedContent(), Inkscape::Extension::Internal::SvgBuilder::endString(), Inkscape::Extension::Internal::SvgBuilder::finishGroup(), formDepth, getDictString(), getPos(), height, ignoreUndef, invert(), label, len, loadColorProfile(), loadOptionalContentLayers(), lookupColorSpaceCopy(), maxDepths, name, offset, opBeginIgnoreUndef(), opBeginImage(), opBeginMarkedContent(), opEndIgnoreUndef(), opEndImage(), opEndMarkedContent(), opImageData(), opMarkPoint(), opSetCacheDevice(), opSetCharWidth(), opXObject(), parse(), parser, popResources(), printCommands, props, pushResources(), ref, res, restoreState(), Inkscape::Extension::Internal::SvgBuilder::restoreState(), saveState(), Inkscape::Extension::Internal::SvgBuilder::saveState(), setApproximationPrecision(), Inkscape::Extension::Internal::SvgBuilder::setClip(), setDefaultApproximationPrecision(), Inkscape::Extension::Internal::SvgBuilder::setGroupOpacity(), Inkscape::Extension::Internal::SvgBuilder::startGroup(), state, stateToAffine(), visible, width, and xref.
Referenced by doShowText(), opMoveSetShowText(), opMoveShowText(), opShowSpaceText(), and opShowText().
|
private |
|
private |
Definition at line 869 of file pdf-parser.cpp.
References doForm1(), formDepth, and getPos().
Referenced by opSetExtGState().
|
private |
Definition at line 2148 of file pdf-parser.cpp.
References _pdf_doc, builder, fontChanged, getFontEngine(), state, subPage, Inkscape::Extension::Internal::SvgBuilder::updateFont(), and xref.
Referenced by opMoveSetShowText(), opMoveShowText(), opShowSpaceText(), and opShowText().
|
private |
Definition at line 514 of file pdf-parser.cpp.
References checkArg(), findOp(), PdfOperator::func, getPos(), ignoreUndef, PdfOperator::name, name, PdfOperator::numArgs, pushOperator(), and PdfOperator::tchk.
Referenced by go().
|
private |
Definition at line 1842 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, colorDeltas, fillPatch(), maxDepths, and state.
Referenced by doPatchMeshShFill(), and fillPatch().
|
private |
std::shared_ptr< CairoFontEngine > PdfParser::getFontEngine | ( | ) |
Definition at line 2157 of file pdf-parser.cpp.
References _font_engine.
Referenced by doUpdateFont().
|
private |
Definition at line 600 of file pdf-parser.cpp.
References parser.
Referenced by doPatternFillFallback(), doPatternStrokeFallback(), doShowText(), doSoftMask(), execOp(), go(), opClosePath(), opCurveTo(), opCurveTo1(), opCurveTo2(), opLineTo(), opMoveSetShowText(), opMoveShowText(), opSetExtGState(), opSetFillColor(), opSetFillColorN(), opSetFillColorSpace(), opSetStrokeColor(), opSetStrokeColorN(), opSetStrokeColorSpace(), opShowSpaceText(), and opShowText().
|
private |
Definition at line 499 of file pdf-parser.cpp.
References OpHistoryEntry::name, OpHistoryEntry::next, and operatorHistory.
|
inline |
Definition at line 132 of file pdf-parser.h.
References state.
Referenced by Inkscape::Extension::Internal::SvgBuilder::_createTilingPattern().
|
private |
Definition at line 400 of file pdf-parser.cpp.
References execOp(), getPos(), parser, and printCommands.
Referenced by parse().
|
private |
Definition at line 1776 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, colorDeltas, gouraudFillTriangle(), maxDepths, and state.
Referenced by doGouraudTriangleShFill(), and gouraudFillTriangle().
void PdfParser::loadColorProfile | ( | ) |
Referenced by doShowText(), and PdfParser().
void PdfParser::loadColorSpaceProfile | ( | GfxColorSpace * | space, |
Object * | obj | ||
) |
void PdfParser::loadOptionalContentLayers | ( | Dict * | resources | ) |
Referenced by doShowText(), and PdfParser().
void PdfParser::loadPatternColorProfiles | ( | Dict * | resources | ) |
|
private |
Get a newly allocated color space instance by CS operation argument.
Maintains a cache for named color spaces to avoid expensive re-parsing.
Definition at line 949 of file pdf-parser.cpp.
References colorSpacesCache, formDepth, name, res, and state.
Referenced by doShowText(), opSetFillColorSpace(), and opSetStrokeColorSpace().
std::unique_ptr< GfxPattern > PdfParser::lookupPattern | ( | Object * | obj, |
GfxState * | state | ||
) |
Look up pattern/gradients from the GfxResource dictionary.
Definition at line 980 of file pdf-parser.cpp.
Referenced by opSetFillColorN(), and opSetStrokeColorN().
|
private |
Referenced by doShowText().
|
private |
Referenced by doShowText().
|
private |
Referenced by doShowText().
|
private |
Definition at line 2005 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beginTextObject(), builder, fontChanged, state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 1991 of file pdf-parser.cpp.
References clip.
|
private |
Definition at line 1433 of file pdf-parser.cpp.
References doEndPath(), doFillAndStroke(), and state.
|
private |
Definition at line 1408 of file pdf-parser.cpp.
References doEndPath(), doFillAndStroke(), and state.
|
private |
Definition at line 1308 of file pdf-parser.cpp.
|
private |
Definition at line 1343 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doEndPath(), doPatternStrokeFallback(), Inkscape::Extension::Internal::SvgBuilder::isPatternTypeSupported(), and state.
|
private |
Concatenate transformation matrix to the current state.
Definition at line 622 of file pdf-parser.cpp.
References fontChanged, and state.
|
private |
Definition at line 1247 of file pdf-parser.cpp.
|
private |
Definition at line 1263 of file pdf-parser.cpp.
|
private |
Definition at line 1279 of file pdf-parser.cpp.
|
private |
Referenced by doShowText().
|
private |
Referenced by doShowText().
|
private |
Referenced by doShowText().
|
private |
Definition at line 1321 of file pdf-parser.cpp.
References doEndPath().
|
private |
Definition at line 2014 of file pdf-parser.cpp.
References builder, Inkscape::Extension::Internal::SvgBuilder::endTextObject(), and state.
|
private |
Definition at line 1996 of file pdf-parser.cpp.
References clip.
|
private |
Definition at line 1377 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doEndPath(), doPatternFillFallback(), Inkscape::Extension::Internal::SvgBuilder::isPatternTypeSupported(), and state.
|
private |
Definition at line 1421 of file pdf-parser.cpp.
References doEndPath(), doFillAndStroke(), and state.
|
private |
Definition at line 1360 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doEndPath(), doPatternFillFallback(), Inkscape::Extension::Internal::SvgBuilder::isPatternTypeSupported(), and state.
|
private |
Definition at line 1394 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doEndPath(), doFillAndStroke(), and state.
|
private |
Referenced by doShowText().
|
private |
Definition at line 1237 of file pdf-parser.cpp.
|
private |
Referenced by doShowText().
|
private |
Definition at line 2202 of file pdf-parser.cpp.
References builder, doShowText(), doUpdateFont(), getPos(), getString(), state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 2184 of file pdf-parser.cpp.
References builder, doShowText(), doUpdateFont(), getPos(), getString(), state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 1231 of file pdf-parser.cpp.
References state.
|
private |
|
private |
Definition at line 1295 of file pdf-parser.cpp.
|
private |
Definition at line 613 of file pdf-parser.cpp.
References restoreState().
|
private |
Definition at line 608 of file pdf-parser.cpp.
References saveState().
|
private |
Referenced by doShowText().
|
private |
Definition at line 2024 of file pdf-parser.cpp.
References state.
|
private |
Referenced by doShowText().
|
private |
Definition at line 631 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 694 of file pdf-parser.cpp.
References doSoftMask(), getPos(), mode, printCommands, res, and state.
|
private |
Definition at line 1013 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1108 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1142 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), lookupPattern(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1069 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), lookupColorSpaceCopy(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 989 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1042 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 656 of file pdf-parser.cpp.
References state.
|
private |
Definition at line 2030 of file pdf-parser.cpp.
References fontChanged, printCommands, res, and state.
|
private |
Definition at line 2087 of file pdf-parser.cpp.
References builder, fontChanged, state, subPage, and Inkscape::Extension::Internal::SvgBuilder::updateTextMatrix().
|
private |
Definition at line 670 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 662 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 686 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 678 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 936 of file pdf-parser.cpp.
|
private |
Definition at line 1028 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1125 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1183 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), lookupPattern(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1088 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, getPos(), lookupColorSpaceCopy(), state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1001 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 1056 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 2061 of file pdf-parser.cpp.
References state.
|
private |
Definition at line 2123 of file pdf-parser.cpp.
References builder, fontChanged, state, subPage, Inkscape::Extension::Internal::SvgBuilder::updateTextMatrix(), and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 2067 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::beforeStateChange(), builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateStyle().
|
private |
Definition at line 2075 of file pdf-parser.cpp.
References state.
|
private |
Definition at line 2081 of file pdf-parser.cpp.
References state.
|
private |
Definition at line 1581 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addClippedFill(), builder, doFunctionShFill(), doGouraudTriangleShFill(), doPatchMeshShFill(), res, restoreState(), saveState(), state, and stateToAffine().
|
private |
Definition at line 2222 of file pdf-parser.cpp.
References builder, doShowText(), doUpdateFont(), getPos(), state, and Inkscape::Extension::Internal::SvgBuilder::updateTextShift().
|
private |
Definition at line 2173 of file pdf-parser.cpp.
References doShowText(), doUpdateFont(), getPos(), getString(), and state.
|
private |
Definition at line 1326 of file pdf-parser.cpp.
References Inkscape::Extension::Internal::SvgBuilder::addPath(), builder, doEndPath(), doPatternStrokeFallback(), Inkscape::Extension::Internal::SvgBuilder::isPatternTypeSupported(), and state.
|
private |
Definition at line 2099 of file pdf-parser.cpp.
References builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 2110 of file pdf-parser.cpp.
References builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Definition at line 2134 of file pdf-parser.cpp.
References builder, state, and Inkscape::Extension::Internal::SvgBuilder::updateTextPosition().
|
private |
Referenced by doShowText().
void PdfParser::parse | ( | Object * | obj, |
GBool | topLevel = gTrue |
||
) |
Definition at line 377 of file pdf-parser.cpp.
References go(), parser, and xref.
Referenced by Inkscape::Extension::Internal::SvgBuilder::_createTilingPattern(), and doShowText().
|
private |
|
private |
Referenced by doShowText(), and ~PdfParser().
|
private |
Definition at line 472 of file pdf-parser.cpp.
References OpHistoryEntry::depth, OpHistoryEntry::name, name, OpHistoryEntry::next, operatorHistory, and OpHistoryEntry::state.
Referenced by execOp(), and PdfParser().
|
private |
Referenced by doShowText().
void PdfParser::restoreState | ( | ) |
Referenced by doShadingPatternFillFallback(), doShowText(), opRestore(), opShFill(), and ~PdfParser().
void PdfParser::saveState | ( | ) |
Referenced by doShadingPatternFillFallback(), doShowText(), opSave(), opShFill(), and PdfParser().
void PdfParser::setApproximationPrecision | ( | int | shadingType, |
double | colorDelta, | ||
int | maxDepth | ||
) |
Referenced by doShowText().
|
private |
Referenced by doShowText(), PdfParser(), and PdfParser().
|
private |
Definition at line 149 of file pdf-parser.h.
Referenced by getFontEngine().
|
private |
Definition at line 148 of file pdf-parser.h.
Referenced by doShowText(), and doUpdateFont().
|
private |
Definition at line 161 of file pdf-parser.h.
Referenced by doShadingPatternFillFallback(), doShowText(), PdfParser(), and PdfParser().
|
private |
Definition at line 152 of file pdf-parser.h.
Referenced by doEndPath(), doFillAndStroke(), doFunctionShFill1(), doShadingPatternFillFallback(), doShowText(), doUpdateFont(), fillPatch(), gouraudFillTriangle(), opBeginText(), opCloseStroke(), opEndText(), opEOFill(), opFill(), opFillStroke(), opMoveSetShowText(), opMoveShowText(), opSetDash(), opSetFillCMYKColor(), opSetFillColor(), opSetFillColorN(), opSetFillColorSpace(), opSetFillGray(), opSetFillRGBColor(), opSetHorizScaling(), opSetLineCap(), opSetLineJoin(), opSetLineWidth(), opSetMiterLimit(), opSetStrokeCMYKColor(), opSetStrokeColor(), opSetStrokeColorN(), opSetStrokeColorSpace(), opSetStrokeGray(), opSetStrokeRGBColor(), opSetTextMatrix(), opSetTextRender(), opShFill(), opShowSpaceText(), opStroke(), opTextMove(), opTextMoveSet(), opTextNextLine(), and PdfParser().
|
private |
Definition at line 159 of file pdf-parser.h.
Referenced by doEndPath(), opClip(), and opEOClip().
|
private |
Definition at line 169 of file pdf-parser.h.
Referenced by doFunctionShFill1(), doShowText(), fillPatch(), and gouraudFillTriangle().
|
private |
Caches color spaces by name.
Definition at line 177 of file pdf-parser.h.
Referenced by lookupColorSpaceCopy().
|
private |
Definition at line 158 of file pdf-parser.h.
Referenced by doUpdateFont(), opBeginText(), opConcat(), opSetFont(), opSetHorizScaling(), and opSetTextMatrix().
|
private |
Definition at line 163 of file pdf-parser.h.
Referenced by doShowText(), doSoftMask(), lookupColorSpaceCopy(), PdfParser(), and PdfParser().
|
private |
Definition at line 160 of file pdf-parser.h.
Referenced by doShowText(), and execOp().
|
private |
Definition at line 172 of file pdf-parser.h.
Referenced by doFunctionShFill1(), doShowText(), fillPatch(), and gouraudFillTriangle().
|
private |
Definition at line 174 of file pdf-parser.h.
Referenced by getPreviousOperator(), pushOperator(), and ~PdfParser().
|
staticprivate |
Definition at line 80 of file pdf-parser.h.
Referenced by findOp().
|
private |
Definition at line 165 of file pdf-parser.h.
Referenced by doShowText(), getPos(), go(), and parse().
|
private |
Definition at line 154 of file pdf-parser.h.
Referenced by doShowText(), go(), opSetExtGState(), and opSetFont().
|
private |
Definition at line 155 of file pdf-parser.h.
Referenced by doShowText(), lookupColorSpaceCopy(), lookupPattern(), opSetExtGState(), opSetFont(), opShFill(), and ~PdfParser().
|
private |
Definition at line 157 of file pdf-parser.h.
Referenced by doEndPath(), doFillAndStroke(), doFunctionShFill1(), doPatternFillFallback(), doPatternStrokeFallback(), doShadingPatternFillFallback(), doShowText(), doUpdateFont(), fillPatch(), getState(), gouraudFillTriangle(), lookupColorSpaceCopy(), lookupPattern(), opBeginText(), opCloseEOFillStroke(), opCloseFillStroke(), opClosePath(), opCloseStroke(), opConcat(), opCurveTo(), opCurveTo1(), opCurveTo2(), opEndText(), opEOFill(), opEOFillStroke(), opFill(), opFillStroke(), opLineTo(), opMoveSetShowText(), opMoveShowText(), opMoveTo(), opRectangle(), opSetCharSpacing(), opSetDash(), opSetExtGState(), opSetFillCMYKColor(), opSetFillColor(), opSetFillColorN(), opSetFillColorSpace(), opSetFillGray(), opSetFillRGBColor(), opSetFlat(), opSetFont(), opSetHorizScaling(), opSetLineCap(), opSetLineJoin(), opSetLineWidth(), opSetMiterLimit(), opSetStrokeCMYKColor(), opSetStrokeColor(), opSetStrokeColorN(), opSetStrokeColorSpace(), opSetStrokeGray(), opSetStrokeRGBColor(), opSetTextLeading(), opSetTextMatrix(), opSetTextRender(), opSetTextRise(), opSetWordSpacing(), opShFill(), opShowSpaceText(), opShowText(), opStroke(), opTextMove(), opTextMoveSet(), opTextNextLine(), PdfParser(), PdfParser(), and ~PdfParser().
|
private |
Definition at line 153 of file pdf-parser.h.
Referenced by doUpdateFont(), opSetHorizScaling(), opSetTextMatrix(), and ~PdfParser().
|
private |
Definition at line 151 of file pdf-parser.h.
Referenced by doShowText(), doUpdateFont(), and parse().