ICEpdf
  1. ICEpdf
  2. PDF-1245

Missing text on pdfbox-layouts generated pdf with justified text

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.3
    • Fix Version/s: 6.3.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      online demo viewer on icepdf's page

      Description

      If I upload the example pdf from this url: https://github.com/ralfstuckert/pdfbox-layout/blob/master/examples/lowleveltext.pdf to your online demo viewer, the pdf is rendered with missing text. In all lines with justified text, only the first word is rendered. I.e. the first three lines of the main text read:
      Lorem
      sadipscing
      tempor
      Three other viewers I tried (Adobe Acrobat Reader, evince, zathura) show the pdf rendered correctly.
      The pdf is a valid 1.4 pdf according to https://www.pdf-online.com/osa/validate.aspx

      We have observed the problem also with other pdfs generated with pdfbox-layout and viewed with ice-pdf; also in that case, only justified text is missing.
      1. lowleveltext.pdf
        4 kB
        Nikolaus Mutsanas
      1. icepdf_pdfbox_layout.png
        100 kB
      2. icepdf-6.3.1-SNAPSHOT-SNAPSHOT.png
        71 kB

        Issue Links

          Activity

          Nikolaus Mutsanas created issue -
          Nikolaus Mutsanas made changes -
          Field Original Value New Value
          Attachment icepdf_pdfbox_layout.png [ 22864 ]
          Hide
          Patrick Corless added a comment -

          Do you have a sample file you can upload?

          Show
          Patrick Corless added a comment - Do you have a sample file you can upload?
          Hide
          Nikolaus Mutsanas added a comment -

          See attached file. It's the one linked in the description

          Show
          Nikolaus Mutsanas added a comment - See attached file. It's the one linked in the description
          Nikolaus Mutsanas made changes -
          Attachment lowleveltext.pdf [ 22865 ]
          Hide
          Patrick Corless added a comment -

          This is a very similar issue to PDF-865. The sample is actually quite helpful as we have only one other test file that exhibits this issue.

          Show
          Patrick Corless added a comment - This is a very similar issue to PDF-865 . The sample is actually quite helpful as we have only one other test file that exhibits this issue.
          Patrick Corless made changes -
          Link This issue duplicates PDF-865 [ PDF-865 ]
          Patrick Corless made changes -
          Fix Version/s 6.3.1 [ 13113 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #52372 Tue Apr 03 14:29:27 MDT 2018 patrick.corless PDF-865 fairly major text parsing change to correctly handle cm tokens
          in a text block. Fixes three other issues, PDF-1245 and PDF-1131.
          Files Changed
          Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/util/content/AbstractContentParser.java
          Hide
          Patrick Corless added a comment -

          fixed.

          Show
          Patrick Corless added a comment - fixed.
          Patrick Corless made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Nikolaus Mutsanas added a comment -

          Thank you for the fix! I'm just wondering, should this be already available in the 6.3.1-SNAPSHOT-SNAPSHOT version? Both the online demo viewer and the one we downloaded still exhibits the bug, see screenshot. Is the bugfix available to the public already?

          Show
          Nikolaus Mutsanas added a comment - Thank you for the fix! I'm just wondering, should this be already available in the 6.3.1-SNAPSHOT-SNAPSHOT version? Both the online demo viewer and the one we downloaded still exhibits the bug, see screenshot. Is the bugfix available to the public already?
          Nikolaus Mutsanas made changes -
          Attachment icepdf-6.3.1-SNAPSHOT-SNAPSHOT.png [ 22872 ]
          Hide
          Patrick Corless added a comment -

          The examples haven not been updated. You'll need to go to our svn repo and build the jars. Should have an official release by end of month.

          Show
          Patrick Corless added a comment - The examples haven not been updated. You'll need to go to our svn repo and build the jars. Should have an official release by end of month.

            People

            • Assignee:
              Patrick Corless
              Reporter:
              Nikolaus Mutsanas
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: