0 Replies Latest reply on Oct 10, 2010 7:34 PM by billyplaying

    Suspected font rendering problem in Adobe Reader 8

    billyplaying

      We are Java developers which need to use Java program to generate PDF. We encountered a problem that if a text field is filled with both Chinese characters and the 2 characters: ` (open-quote) and ' (single-quote) by the program using iText library, the open-quote/single-quote characters cannot be shown on Adobe Reader 8, but displayed normally on Adobe Reader 9. Below is a link to a sample PDF with such problem:

       

      http://www.goodyeah.net/billy/sample.pdf

       

      On Adobe Reader 8.2.5 (Windows XP Professional SP3):

      sample1.gif

       

      On Adobe Reader 9.4 (Windows XP Professional SP3):

      sample2.gif

       

      When copying the text to notepad, the 2 characters are there:

      sample3.gif

       

      On File > Property > Font, the font and encoding being used in Adobe Reader is:

      sample4.gif

       

      Chinese font packs installed:

      sample5.gif

       

      The font using in the text field is not embedded in PDF, just using the font in Chinese font pack downloaded from Adobe website.

      If changed to use English only fonts, like Helvetica, the 2 characters can be displayed normally on both Reader versions.

       

      The itext commands used to specify font is:

       

      MSungStdLight = BaseFont.createFont("MSungStd-Light", "UniCNS-UCS2-H", BaseFont.NOT_EMBEDDED);

      ...

      AcroFields form = stamper.getAcroFields();

      ...

      form.setFieldProperty(key, "textfont", MSungStdLight, null);

       

      Any people would know possible solutions for this problem? As Adobe Reader is a free software which do not have technical support, we are unable to get official answer from Adobe. Any help would be really appreciated~