From b1f472281d8d36aff1243663ca2b09eabce5d34e Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 7 Aug 2004 14:04:15 +0000 Subject: [PATCH] small logging fixes. --- pdf2swf/SWFOutputDev.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index f6274bb..99c5c1b 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -617,12 +617,11 @@ SWFOutputDev::~SWFOutputDev() }; GBool SWFOutputDev::upsideDown() { - msg(" upsidedown?"); + msg(" upsidedown? yes"); return gTrue; }; GBool SWFOutputDev::useDrawChar() { - msg(" usedrawchar?"); return gTrue; } @@ -660,8 +659,6 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, if(_u) u = *_u; - msg(" drawChar(%f,%f,%f,%f,c='%c' (%d),u=%d <%d>) CID=%d\n",x,y,dx,dy,c,c,u, uLen, font->isCIDFont()); - /* find out the character name */ char*name=0; if(font->isCIDFont() && u) { @@ -681,13 +678,13 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, if(enc && enc[c]) name = enc[c]; } + + msg(" drawChar(%f,%f,c='%c' (%d),u=%d <%d>) CID=%d name=\"%s\"\n",x1,y1,(c&127)>=32?c:'?',c,u, uLen, font->isCIDFont(), FIXNULL(name)); int ret = swfoutput_drawchar(&output, x1, y1, name, c, u); } -void SWFOutputDev::endString(GfxState *state) -{ - msg(" endstring\n"); +void SWFOutputDev::endString(GfxState *state) { } @@ -1180,7 +1177,7 @@ void SWFOutputDev::updateFont(GfxState *state) msg(" updateFont(%s) -> %s", fontname, fileName); swfoutput_setfont(&output, fontname, fileName); - + if(fileName && del) unlinkfont(fileName); } -- 1.7.10.4