ICEpdf
  1. ICEpdf
  2. PDF-1131

Vertical text rendered inverted/mirrored

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.2
    • Fix Version/s: 6.3.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      In the provided PDF there is some text displayed vertical. This text is being rendered inverted/mirrored.

        Issue Links

          Activity

          Arran Mccullough created issue -
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #50936 Mon Mar 06 12:01:15 MST 2017 patrick.corless PDF-1131 testing validity of potential inverted text fix.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Patrick Corless made changes -
          Field Original Value New Value
          Fix Version/s 6.2.3 [ 13098 ]
          Hide
          Patrick Corless added a comment -

          The PDF seems to be the only one of it's kind in our qa content set. It's a rare bird in that it uses the a 'cm' inside of a text block instead of a 'Tm' token. Our other example all work fine but they have relatively simple transforms containing just scale and translate. This PDF uses a negative shear X value which is why we render the text inverted on the vertical. It would appear we should ignore the shear value if the a 'cm' is used, or at least this is what acrobat seems to be doing. Once we do the correction for the negative value the document renders correctly as do our handful of other document that incorrectly use 'cm' over 'tm'.

          Show
          Patrick Corless added a comment - The PDF seems to be the only one of it's kind in our qa content set. It's a rare bird in that it uses the a 'cm' inside of a text block instead of a 'Tm' token. Our other example all work fine but they have relatively simple transforms containing just scale and translate. This PDF uses a negative shear X value which is why we render the text inverted on the vertical. It would appear we should ignore the shear value if the a 'cm' is used, or at least this is what acrobat seems to be doing. Once we do the correction for the negative value the document renders correctly as do our handful of other document that incorrectly use 'cm' over 'tm'.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #50937 Mon Mar 06 13:18:22 MST 2017 patrick.corless PDF-1131 cm used inside a text block is supposed to be the same Tm token
          but this is not the case in this corner case. It would appear we should
           not be applying the shearX of the transform.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-6.2.0/icepdf/core/src/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 ]
          Patrick Corless made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Patrick Corless added a comment -

          Found the root issue reopening.

          Show
          Patrick Corless added a comment - Found the root issue reopening.
          Patrick Corless made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Patrick Corless made changes -
          Fix Version/s 6.3.1 [ 13113 ]
          Fix Version/s 6.2.3 [ 13098 ]
          Patrick Corless made changes -
          Link This issue duplicates PDF-865 [ PDF-865 ]
          Hide
          Patrick Corless added a comment -

          Similar issue.

          Show
          Patrick Corless added a comment - Similar issue.
          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 -

          Marking as fixed.

          Show
          Patrick Corless added a comment - Marking as fixed.
          Patrick Corless made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: