1 --- scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.cpp~ 2020-11-14 23:37:11.000000000 +0100
2 +++ scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.cpp 2021-04-02 22:18:18.385332709 +0200
7 -GBool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int paintType, int tilingType, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep)
\r
8 +#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)
\r
9 +bool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, GfxTilingPattern *tPat, const double *mat, int x0, int y0, int x1, int y1, double xStep, double yStep)
\r
11 +GBool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int /*paintType*/, int /*tilingType*/, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep)
\r
14 // qDebug() << "SlaOutputDev::tilingPatternFill";
\r
15 +#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)
\r
16 + const double *bbox = tPat->getBBox();
\r
17 + const double *pmat = tPat->getMatrix();
\r
18 + Dict *resDict = tPat->getResDict();
\r
23 @@ -2325,7 +2334,11 @@
24 // Unset the clip path as it is unrelated to the pattern's coordinate space.
\r
25 QPainterPath savedClip = m_currentClipPath;
\r
26 m_currentClipPath = QPainterPath();
\r
27 +#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)
\r
28 + gfx->display(tPat->getContentStream());
\r
32 m_currentClipPath = savedClip;
\r
34 gElements = m_groupStack.pop();
\r
35 --- scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.h~ 2020-11-14 23:37:11.000000000 +0100
36 +++ scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.h 2021-04-02 22:15:19.594513556 +0200
38 void stroke(GfxState *state) override;
\r
39 void fill(GfxState *state) override;
\r
40 void eoFill(GfxState *state) override;
\r
41 +#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)
\r
42 + bool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, GfxTilingPattern *tPat, const double *mat, int x0, int y0, int x1, int y1, double xStep, double yStep) override;
\r
44 GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int paintType, int tilingType, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep) override;
\r
46 GBool functionShadedFill(GfxState * /*state*/, GfxFunctionShading * /*shading*/) override { qDebug() << "Function Shaded Fill"; return gFalse; }
\r
47 GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax) override;
\r
48 GBool axialShadedSupportExtend(GfxState *state, GfxAxialShading *shading) override { return (shading->getExtend0() == shading->getExtend1()); }
\r