X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2FSWFOutputDev.cc;h=c2aa5cb58b1796efc940088b1b67531030d4b197;hb=b758bdb10da8e20798da872c5db99eccc399bfd6;hp=55b602870dcce88df385fe68db61cf701cdfcb37;hpb=4280bce95855945638777a1964581d0440d28ff4;p=swftools.git diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 55b6028..c2aa5cb 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -590,7 +590,10 @@ void SWFOutputDev::drawChar(GfxState *state, double x, double y, double dx, doub y1 = y; state->transform(x, y, &x1, &y1); - swfoutput_drawchar(&output, x1, y1, enc->getCharName(c)); + if(enc->getCharName(c)) + swfoutput_drawchar(&output, x1, y1, enc->getCharName(c)); + else + logf(" couldn't get name for character %02x from Encoding", c); } } @@ -738,7 +741,7 @@ int SWFOutputDev::setT1Font(char*name, FontEncoding*encoding) void SWFOutputDev::updateLineWidth(GfxState *state) { - double width = state->getLineWidth(); + double width = state->getTransformedLineWidth(); swfoutput_setlinewidth(&output, width); }