75
76
virtual void endPage();
78
virtual void drawLink(Link *link, Catalog *catalog);
80
78
//----- save/restore graphics state
81
79
virtual void saveState(GfxState *state);
82
80
virtual void restoreState(GfxState *state);
91
89
virtual void updateLineCap(GfxState *state);
92
90
virtual void updateMiterLimit(GfxState *state);
93
91
virtual void updateLineWidth(GfxState *state);
92
virtual void updateStrokeAdjust(GfxState *state);
94
93
virtual void updateFillColor(GfxState *state);
95
94
virtual void updateStrokeColor(GfxState *state);
96
95
virtual void updateBlendMode(GfxState *state);
108
107
//----- path clipping
109
108
virtual void clip(GfxState *state);
110
109
virtual void eoClip(GfxState *state);
110
virtual void clipToStrokePath(GfxState *state);
112
112
//----- text drawing
113
113
virtual void drawChar(GfxState *state, double x, double y,
144
144
virtual void type3D1(GfxState *state, double wx, double wy,
145
145
double llx, double lly, double urx, double ury);
147
//----- transparency groups and soft masks
148
virtual void beginTransparencyGroup(GfxState *state, double *bbox,
149
GfxColorSpace *blendingColorSpace,
150
GBool isolated, GBool knockout,
152
virtual void endTransparencyGroup(GfxState *state);
153
virtual void paintTransparencyGroup(GfxState *state, double *bbox);
154
virtual void setSoftMask(GfxState *state, double *bbox, GBool alpha,
155
Function *transferFunc, GfxColor *backdropColor);
156
virtual void clearSoftMask(GfxState *state);
147
158
//----- special access
149
160
// Called to indicate that a new PDF document has been loaded.
176
187
void setFillColor(int r, int g, int b);
178
189
// Get a font object for a Base-14 font, using the Latin-1 encoding.
179
SplashFont *getFont(GString *name, double *mat);
190
SplashFont *getFont(GString *name, double *textMatA);
181
192
SplashFont *getCurrentFont() { return font; }
194
#if 1 //~tmp: turn off anti-aliasing temporarily
195
virtual GBool getVectorAntialias();
196
virtual void setVectorAntialias(GBool vaa);
201
void setupScreenParams(double hDPI, double vDPI);
186
203
SplashPattern *getColor(GfxGray gray, GfxRGB *rgb, GfxCMYK *cmyk);
188
205
SplashPattern *getColor(GfxGray gray, GfxRGB *rgb);
190
207
SplashPath *convertPath(GfxState *state, GfxPath *path);
208
void doUpdateFont(GfxState *state);
191
209
void drawType3Glyph(T3FontCache *t3Font,
192
T3FontCacheTag *tag, Guchar *data,
210
T3FontCacheTag *tag, Guchar *data);
194
211
static GBool imageMaskSrc(void *data, SplashColorPtr line);
195
static GBool imageSrc(void *data, SplashColorPtr line);
196
static GBool alphaImageSrc(void *data, SplashColorPtr line);
197
static GBool maskedImageSrc(void *data, SplashColorPtr line);
212
static GBool imageSrc(void *data, SplashColorPtr colorLine,
214
static GBool alphaImageSrc(void *data, SplashColorPtr line,
216
static GBool maskedImageSrc(void *data, SplashColorPtr line,
199
219
SplashColorMode colorMode;
200
220
int bitmapRowPad;
201
221
GBool bitmapTopDown;
202
222
GBool allowAntialias;
223
GBool vectorAntialias;
203
224
GBool reverseVideo; // reverse video mode
204
225
SplashColor paperColor; // paper color
226
SplashScreenParams screenParams;
206
228
XRef *xref; // xref table for current document