LibreOffice Module sdext (master) 1
|
#include <pdfioutdev_gpl.hxx>
Public Member Functions | |
PDFOutDev (PDFDoc *pDoc) | |
virtual | ~PDFOutDev () override |
virtual poppler_bool | upsideDown () override |
virtual poppler_bool | useDrawChar () override |
virtual poppler_bool | interpretType3Chars () override |
virtual poppler_bool | needNonText () override |
virtual void | setDefaultCTM (double *ctm) override |
virtual void | startPage (int pageNum, GfxState *state) override |
virtual void | endPage () override |
virtual void | processLink (Link *link, Catalog *catalog) override |
virtual void | saveState (GfxState *state) override |
virtual void | restoreState (GfxState *state) override |
virtual void | updateCTM (GfxState *state, double m11, double m12, double m21, double m22, double m31, double m32) override |
virtual void | updateLineDash (GfxState *state) override |
virtual void | updateFlatness (GfxState *state) override |
virtual void | updateLineJoin (GfxState *state) override |
virtual void | updateLineCap (GfxState *state) override |
virtual void | updateMiterLimit (GfxState *state) override |
virtual void | updateLineWidth (GfxState *state) override |
virtual void | updateFillColor (GfxState *state) override |
virtual void | updateStrokeColor (GfxState *state) override |
virtual void | updateFillOpacity (GfxState *state) override |
virtual void | updateStrokeOpacity (GfxState *state) override |
virtual void | updateBlendMode (GfxState *state) override |
virtual void | updateFont (GfxState *state) override |
virtual void | updateRender (GfxState *state) override |
virtual void | stroke (GfxState *state) override |
virtual void | fill (GfxState *state) override |
virtual void | eoFill (GfxState *state) override |
virtual void | clip (GfxState *state) override |
virtual void | eoClip (GfxState *state) override |
virtual void | drawChar (GfxState *state, double x, double y, double dx, double dy, double originX, double originY, CharCode code, int nBytes, Unicode *u, int uLen) override |
Output one glyph. More... | |
virtual void | drawString (GfxState *state, GooString *s) override |
virtual void | endTextObject (GfxState *state) override |
virtual void | drawImageMask (GfxState *state, Object *ref, Stream *str, int width, int height, poppler_bool invert, poppler_bool interpolate, poppler_bool inlineImg) override |
virtual void | drawImage (GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, poppler_bool interpolate, int *maskColors, poppler_bool inlineImg) override |
virtual void | drawMaskedImage (GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, poppler_bool interpolate, Stream *maskStr, int maskWidth, int maskHeight, poppler_bool maskInvert, poppler_bool maskInterpolate) override |
virtual void | drawSoftMaskedImage (GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, poppler_bool interpolate, Stream *maskStr, int maskWidth, int maskHeight, GfxImageColorMap *maskColorMap, poppler_bool maskInterpolate) override |
void | setSkipImages (bool bSkipImages) |
Static Public Member Functions | |
static void | setPageNum (int nNumPages) |
Private Member Functions | |
int | parseFont (long long nNewId, GfxFont *pFont, const GfxState *state) const |
void | writeFontFile (GfxFont *gfxFont) const |
Static Private Member Functions | |
static void | printPath (GfxPath *pPath) |
Private Attributes | |
PDFDoc * | m_pDoc |
std::unordered_map< long long, FontAttributes > | m_aFontMap |
std::unique_ptr< UnicodeMap > | m_pUtf8Map |
bool | m_bSkipImages |
Definition at line 134 of file pdfioutdev_gpl.hxx.
|
explicit |
Definition at line 565 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 571 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 890 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and printPath().
|
overridevirtual |
Output one glyph.
dx | horizontal skip for character (already scaled with font size) + inter-char space: cursor is shifted by this amount for next char |
dy | vertical skip for character (zero for horizontal writing mode): cursor is shifted by this amount for next char |
originX | local offset of character (zero for horizontal writing mode). not taken into account for output pos updates. Used for vertical writing. |
originY | local offset of character (zero for horizontal writing mode). not taken into account for output pos updates. Used for vertical writing. |
Definition at line 939 of file pdfioutdev_gpl.cxx.
References i, m_pUtf8Map, pdfi::normalize(), u, x, and y.
|
overridevirtual |
Definition at line 1063 of file pdfioutdev_gpl.cxx.
References aBuf, pdfi::initBuf(), m_bSkipImages, POPPLER_CHECK_VERSION, pdfi::writeBinaryBuffer(), and pdfi::writeImageLF().
|
overridevirtual |
Definition at line 1027 of file pdfioutdev_gpl.cxx.
References aBuf, pdfi::initBuf(), m_bSkipImages, pdfi::writeBinaryBuffer(), pdfi::writeMaskLF(), and pdfi::writePng_().
|
overridevirtual |
Definition at line 1120 of file pdfioutdev_gpl.cxx.
References aBuf, pdfi::initBuf(), m_bSkipImages, pdfi::writeBinaryBuffer(), and pdfi::writePng_().
|
overridevirtual |
Definition at line 1137 of file pdfioutdev_gpl.cxx.
References aBuf, pdfi::initBuf(), m_bSkipImages, pdfi::writeBinaryBuffer(), and pdfi::writePng_().
|
overridevirtual |
Definition at line 1016 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 587 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 1022 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 901 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and printPath().
|
overridevirtual |
Definition at line 879 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and printPath().
|
overridevirtual |
Definition at line 868 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and printPath().
|
inlineoverridevirtual |
Definition at line 166 of file pdfioutdev_gpl.hxx.
|
inlineoverridevirtual |
Definition at line 169 of file pdfioutdev_gpl.hxx.
|
private |
Definition at line 430 of file pdfioutdev_gpl.cxx.
References pdfi::FontAttributes::familyName, pdfi::FontAttributes::isEmbedded, pdfi::FontAttributes::isItalic, pdfi::FontAttributes::isUnderline, m_aFontMap, m_pDoc, pdfi::FontAttributes::maFontWeight, and pdfi::FontAttributes::size.
Referenced by updateFont().
|
staticprivate |
Definition at line 541 of file pdfioutdev_gpl.cxx.
References i, n, and pdfi::normalize().
Referenced by clip(), eoClip(), eoFill(), fill(), and stroke().
|
overridevirtual |
Definition at line 597 of file pdfioutdev_gpl.cxx.
References pdfi::normalize().
|
overridevirtual |
Definition at line 632 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 627 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 640 of file pdfioutdev_gpl.cxx.
References pdfi::normalize().
|
static |
Definition at line 1155 of file pdfioutdev_gpl.cxx.
Referenced by main().
void pdfi::PDFOutDev::setSkipImages | ( | bool | bSkipImages | ) |
|
overridevirtual |
Definition at line 575 of file pdfioutdev_gpl.cxx.
References pdfi::normalize().
|
overridevirtual |
Definition at line 857 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and printPath().
|
overridevirtual |
Definition at line 787 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 656 of file pdfioutdev_gpl.cxx.
References pdfi::normalize().
|
overridevirtual |
Definition at line 741 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and pdfi::normalize().
Referenced by updateFillOpacity().
|
overridevirtual |
Definition at line 773 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and updateFillColor().
|
overridevirtual |
Definition at line 701 of file pdfioutdev_gpl.cxx.
References m_bSkipImages.
|
overridevirtual |
Definition at line 791 of file pdfioutdev_gpl.cxx.
References pdfi::FontAttributes::familyName, pdfi::FontAttributes::isEmbedded, pdfi::FontAttributes::isItalic, pdfi::FontAttributes::isUnderline, m_aFontMap, pdfi::FontAttributes::maFontWeight, pdfi::normalize(), parseFont(), Ref, and writeFontFile().
|
overridevirtual |
Definition at line 717 of file pdfioutdev_gpl.cxx.
References m_bSkipImages.
|
overridevirtual |
Definition at line 675 of file pdfioutdev_gpl.cxx.
References i, m_bSkipImages, and pdfi::normalize().
|
overridevirtual |
Definition at line 709 of file pdfioutdev_gpl.cxx.
References m_bSkipImages.
|
overridevirtual |
Definition at line 733 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and pdfi::normalize().
|
overridevirtual |
Definition at line 725 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and pdfi::normalize().
|
overridevirtual |
Definition at line 850 of file pdfioutdev_gpl.cxx.
|
overridevirtual |
Definition at line 757 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and pdfi::normalize().
Referenced by updateStrokeOpacity().
|
overridevirtual |
Definition at line 780 of file pdfioutdev_gpl.cxx.
References m_bSkipImages, and updateStrokeColor().
|
inlineoverridevirtual |
Definition at line 159 of file pdfioutdev_gpl.hxx.
|
inlineoverridevirtual |
Definition at line 162 of file pdfioutdev_gpl.hxx.
|
private |
Definition at line 498 of file pdfioutdev_gpl.cxx.
References g_binary_out, and m_pDoc.
Referenced by updateFont().
|
mutableprivate |
Definition at line 139 of file pdfioutdev_gpl.hxx.
Referenced by parseFont(), and updateFont().
|
private |
Definition at line 141 of file pdfioutdev_gpl.hxx.
Referenced by clip(), drawImage(), drawImageMask(), drawMaskedImage(), drawSoftMaskedImage(), eoClip(), eoFill(), fill(), setSkipImages(), stroke(), updateFillColor(), updateFillOpacity(), updateFlatness(), updateLineCap(), updateLineDash(), updateLineJoin(), updateLineWidth(), updateMiterLimit(), updateStrokeColor(), and updateStrokeOpacity().
|
private |
Definition at line 137 of file pdfioutdev_gpl.hxx.
Referenced by parseFont(), and writeFontFile().
|
private |
Definition at line 140 of file pdfioutdev_gpl.hxx.
Referenced by drawChar().