X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FInfoOutputDev.cc;h=13733cb11a5ab73fdcf22d083c72a8f99cb0f4ad;hb=8ae635edba5d165a5f6ad336389a4299a04003e2;hp=830776d95d65749f6e7a9e13eae60a6793989bd5;hpb=a2f21288d10ce4e448ba07a72463aa2689d59ed3;p=swftools.git diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 830776d..13733cb 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -1,14 +1,19 @@ +#include "SplashTypes.h" +#include "SplashOutputDev.h" #include "InfoOutputDev.h" #include "GfxState.h" #include "../log.h" #include -InfoOutputDev::InfoOutputDev() +InfoOutputDev::InfoOutputDev(XRef*xref) { num_links = 0; num_images = 0; num_fonts = 0; id2font = new GHash(); + SplashColor white = {255,255,255}; + //splash = new SplashOutputDev(splashModeRGB8,320,0,white,0,0); + //splash->startDoc(xref); } InfoOutputDev::~InfoOutputDev() { @@ -58,7 +63,6 @@ static char*getFontID(GfxFont*font) return strdup(buf); } - void InfoOutputDev::updateFont(GfxState *state) { GfxFont*font = state->getFont(); @@ -77,6 +81,11 @@ void InfoOutputDev::updateFont(GfxState *state) num_fonts++; } currentfont = info; + + //splash->doUpdateFont(state); + //SplashFont* splash_font = splash->getCurrentFont(); + + //printf("%s: %d chars\n", id, splash_font->getNumChars()); } void InfoOutputDev::drawChar(GfxState *state, double x, double y,