X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FInfoOutputDev.cc;h=a0a4cacd73630b40649575260bbfbfa54cd76d15;hp=7a42e734cd073db7bd8be39bbbc868ae9da16a2c;hb=dcb935d31dc5cb66997bbca2445b6e4c4eff3257;hpb=6e18b3055f2903ef0425d1a7adb78ae1e95c69cd diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 7a42e73..a0a4cac 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -13,6 +13,7 @@ InfoOutputDev::InfoOutputDev(XRef*xref) num_links = 0; num_images = 0; num_fonts = 0; + num_polygons= 0; currentfont = 0; currentglyph = 0; id2font = new GHash(1); @@ -154,6 +155,17 @@ void InfoOutputDev::updateFont(GfxState *state) 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);