ICEpdf
  1. ICEpdf
  2. PDF-1287

CM inside of text block is causing missing text

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.2.5, 6.3.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      Description

      A community member has submitted two files, one that is missing some text the other has been corrected by Acrobat and renders correctly in the viewer.

      The problem is related to cm that is inside of a text block which is technically illegal. The correct file actually moves the transform out of the text block. The main issue however is that over the years we have had numerous examples where this transform is needed to render the text. In this particular case the transform is causing the problem and should be ignored. I'll need to fire up a full qa run to see what kind of trouble we're looking at.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.3.2 [ 13175 ]
        Judy Guglielmin made changes -
        Support Case References Support Case 14054:- https://icesoft.my.salesforce.com/5007000001iL0hi
        Hide
        Patrick Corless added a comment -

        Given the thousands of PDF we have in our QA content set surprisingly we only have two files that have this odd syntax. And of course there is nothing in the spec about it.
        The cm in needed for PDF A and it has very simple transform with only a translation. PDF B on the other hand has a very strange transform, huge scale and translations that don't jive with the rest of the file.

        For the time being we'll ignore the out of place transform with a simple scale check. Perhaps one day we can check against the pdf's coordinate bounds to see if a transform is a mistake by the encoder or not.

        Show
        Patrick Corless added a comment - Given the thousands of PDF we have in our QA content set surprisingly we only have two files that have this odd syntax. And of course there is nothing in the spec about it. The cm in needed for PDF A and it has very simple transform with only a translation. PDF B on the other hand has a very strange transform, huge scale and translations that don't jive with the rest of the file. For the time being we'll ignore the out of place transform with a simple scale check. Perhaps one day we can check against the pdf's coordinate bounds to see if a transform is a mistake by the encoder or not.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52857 Mon Dec 17 21:54:49 MST 2018 patrick.corless PDF-1287 added some patch code to try to avoid doing some incorrect
        cm transformation in a text block.
        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 -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Judy Guglielmin added a comment -

        Client would like to know if this can be applied to the 6.2 branch as their client has a JDK6 limitation. Please comment on this JIra as to complexity and if this is possible (timeline?). Thanks.

        Show
        Judy Guglielmin added a comment - Client would like to know if this can be applied to the 6.2 branch as their client has a JDK6 limitation. Please comment on this JIra as to complexity and if this is possible (timeline?). Thanks.
        Judy Guglielmin made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Judy Guglielmin made changes -
        Fix Version/s 6.2.5 [ 13102 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52923 Mon Apr 01 21:26:50 MDT 2019 patrick.corless PDF-1287 backport of patch code to avoid doing some incorrect
        cm transformation in a text block.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.2.5/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52924 Mon Apr 01 21:27:49 MDT 2019 patrick.corless creation of PDF-1287 patch build.
        Files Changed
        Commit graph ADD /icepdf/tags/icepdf-6.2.5_1287

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: