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

PDFToImage conversion garbled characters on Linux but Windows OK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.5
    • None
    • Text extraction
    • None
    • Oracle Linux 3.8.13-118.14.1.el6uek.x86_64 + JRE 8 u131
       -versus-
      Windows 7 x64 + JRE 8 u131

    Description

      I have lots of PDF documents with CID/Identity-H encoding which convert to images just fine on a Windows 7 platform, but the conversion on Linux causes garbled text in the image.

      I have permission from Blue Chyp Ltd to share a culprit PDF publicly in the PDFBox community - the first attachment.

      Running "java -jar pdfbox-app-2.0.5.jar PDFToImage BC600_S1_P3_A708__A.PDF" on Linux gives an image with garbled text - the second attachment.

      However, running the same command on Windows 7 gives a faithful jpeg image - the third attachment.

      I used the 64 bit JRE 8 update 131 In both the Windows and Linux environments.

      I used to suffer from lots of PDF->Image conversions giving garbled text at PDFBox1.8. Upgrading to PDFBox2.0 has fixed most of these issues, except for this odd one with identity-H encoding with the Linux JRE.

      Attachments

        1. BC600_S1_P3_A708__A.PDF
          135 kB
          Ed Sawdon
        2. BC600_S1_P3_A708__A1-Linux.jpg
          352 kB
          Ed Sawdon
        3. BC600_S1_P3_A708__A1-Windows.jpg
          347 kB
          Ed Sawdon

        Activity

          People

            Unassigned Unassigned
            edsawdon Ed Sawdon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: