1 #ifndef __infooutputdev_h__
2 #define __infooutputdev_h__
6 #include "SplashFont.h"
7 #include "SplashOutputDev.h"
8 #include "SplashPath.h"
28 SplashFont*splash_font;
31 extern char*getFontID(GfxFont*font);
33 class InfoOutputDev: public OutputDev
36 FontInfo* currentfont;
37 SplashOutputDev*splash;
44 InfoOutputDev(XRef*xref);
45 virtual ~InfoOutputDev();
46 virtual GBool useTilingPatternFill();
47 virtual GBool upsideDown();
48 virtual GBool useDrawChar();
49 virtual GBool interpretType3Chars();
50 virtual void startPage(int pageNum, GfxState *state, double crop_x1, double crop_y1, double crop_x2, double crop_y2);
51 virtual void drawLink(Link *link, Catalog *catalog);
52 virtual double getMaximumFontSize(char*id);
53 virtual void updateFont(GfxState *state);
54 virtual void drawChar(GfxState *state, double x, double y,
56 double originX, double originY,
57 CharCode code, int nBytes, Unicode *u, int uLen);
58 virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
59 int width, int height, GBool invert,
61 virtual void drawImage(GfxState *state, Object *ref, Stream *str,
62 int width, int height, GfxImageColorMap *colorMap,
63 int *maskColors, GBool inlineImg);
64 virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str,
65 int width, int height,
66 GfxImageColorMap *colorMap,
68 int maskWidth, int maskHeight,
70 virtual void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str,
71 int width, int height,
72 GfxImageColorMap *colorMap,
74 int maskWidth, int maskHeight,
75 GfxImageColorMap *maskColorMap);
76 virtual FontInfo* getFont(char*id);
79 #endif //__infooutputdev_h__