Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4130

When W entries not included in CIDFont get width from font by code, Improve display of some PDF files.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.8, 3.0.0 PDFBox
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:
      None

      Description

      Some PDF use CJK font without embedded subset displayed incorrectly, the alphabet become wider.

      This is before the patch.

       

       

      This is after the patch.

      The test file DateTest.pdf

      This patch only get width from font when these isn't a W entry in CIDFont. If there is an W entry, then any cid not in W entries will return default width.

        Attachments

        1. PDFBOX-4130-2-reduced.pdf
          1 kB
          Tilman Hausherr
        2. PDFBOX-4130-1-reduced.pdf
          1 kB
          Tilman Hausherr
        3. zt1.pdf
          2 kB
          chunlinyao
        4. diff.patch
          3 kB
          chunlinyao
        5. DateTest.pdf
          2 kB
          chunlinyao
        6. after.png
          7 kB
          chunlinyao
        7. before.png
          8 kB
          chunlinyao

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                chunlinyao chunlinyao
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: