pdfclown - PDF Viewer bug using Arial font where whitespaces became "question mark" -
i didn't notice bug until run in google chrome in windows 7. wasn't noticeable in internet explorer cuz using adobe acrobat, chrome use built-in pdf viewer.
the text "hello, how you?" had became "hello,?how?are?you?".
using pdfclownfonts = org.pdfclown.documents.contents.fonts; private void documenttemplate(document parmdocument) { primitivecomposer primitivecomposer = new primitivecomposer(page); { blockcomposer blockcomposer = new blockcomposer(primitivecomposer); pdfclownfonts::font fontarial = pdfclownfonts::font.get(parmdocument, _fontarialregularfilepath); primitivecomposer.setfont(fontarial, 26 /*[font-size]*/); blockcomposer.begin(new rectanglef(5f, 5f, 500f, 30f), xalignmentenum.left, yalignment enum.top); blockcomposer.showtext("hello, how you?"); blockcomposer.end(); blockcomposer.flush(); } } then found bug report @ http://sourceforge.net/p/clown/bugs/52/ .
so question is...
1) chrome bug?
2) or pdfclown bug?
3) if pdfclown bug, have idea of estimate time fixed?
thanks.
this issue masterly explained vadim in his answer , subject of @ least one pdf.js' bug-tracking entry.
the short answer pdf clown generates legal pdf files (hence rendered adobe acrobat, poppler-based viewers evince, , excellent ghostscript interpreter). problem these pdf files feature "jagged" mixed-length code-points aren't handled less-mature viewers chrome's.
to avoid such inconvenience, pdf clown use single-length encodings (it's among issues due solved in 0.2.0).
update 04/14/2015
i'm glad announce the issue has been solved , committed project's repo. included in next releases (0.1.2.1 , 0.2.0); in meantime, can download code snapshot link indicated.
Comments
Post a Comment