num_links = 0;
num_images = 0;
num_fonts = 0;
+ num_polygons= 0;
currentfont = 0;
currentglyph = 0;
id2font = new GHash(1);
currentfont->splash_font = splash->getCurrentFont();
free(id);
}
+
+void InfoOutputDev::fill(GfxState *state)
+{
+ num_polygons++;
+}
+
+void InfoOutputDev::eoFill(GfxState *state)
+{
+ num_polygons++;
+}
+
FontInfo* InfoOutputDev::getFont(char*id)
{
return (FontInfo*)id2font->lookup(id);
FontInfo* currentfont;
GlyphInfo* currentglyph;
SplashOutputDev*splash;
+
public:
int x1,y1,x2,y2;
int num_links;
int num_images;
int num_fonts;
+ int num_polygons;
InfoOutputDev(XRef*xref);
virtual ~InfoOutputDev();
virtual void type3D0(GfxState *state, double wx, double wy);
virtual void type3D1(GfxState *state, double wx, double wy, double llx, double lly, double urx, double ury);
virtual void endType3Char(GfxState *state);
+
+ virtual void fill(GfxState *state);
+ virtual void eoFill(GfxState *state);
virtual void drawChar(GfxState *state, double x, double y,
double dx, double dy,