ICEpdf
  1. ICEpdf
  2. PDF-587

PDF is not properly displayed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.0.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Windows 7 64bit; JRE 7u21;

      Description

      The attached pdf is not properly rendered - neither in the IcePdf Viewer Applet from your homepage.
      No exceptions are thrown.
      (This issue has been mailed to Tristan Fenaux, too)
      1. umsatz.pdf
        67 kB
        Helmut Hofbauer

        Issue Links

          Activity

          Helmut Hofbauer created issue -
          Helmut Hofbauer made changes -
          Field Original Value New Value
          Attachment umsatz.pdf [ 15989 ]
          Patrick Corless made changes -
          Fix Version/s 5.0.2 [ 10972 ]
          Hide
          Patrick Corless added a comment -

          Duplicate issue.

          Show
          Patrick Corless added a comment - Duplicate issue.
          Patrick Corless made changes -
          Link This issue depends on PDF-579 [ PDF-579 ]
          Patrick Corless made changes -
          Fix Version/s 5.0.3 [ 11070 ]
          Fix Version/s 5.0.2 [ 10972 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #36614 Tue Jul 09 14:00:02 MDT 2013 patrick.corless PDF-587 updated the draw string and TJ token handling to try and compensate for a font that isn't size and character space is negative. experimental.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #36620 Wed Jul 10 09:40:32 MDT 2013 patrick.corless PDF-587 reverted Tc changes
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Hide
          Patrick Corless added a comment -

          Still having difficulty fixing this issue for all the test cases. It would appear that the font size > 1 and a negative Tc value is the root of the problem. My current path fixes the layout for the attache document but there are still some problems with it for other documents.

          Show
          Patrick Corless added a comment - Still having difficulty fixing this issue for all the test cases. It would appear that the font size > 1 and a negative Tc value is the root of the problem. My current path fixes the layout for the attache document but there are still some problems with it for other documents.
          Patrick Corless made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Patrick Corless added a comment -

          There is still an issue when one work in the document for the currency column. The text is overlapped. I'm pushing this bug forward to 5.0.4 and updated more test cases to the support drive.

          Show
          Patrick Corless added a comment - There is still an issue when one work in the document for the currency column. The text is overlapped. I'm pushing this bug forward to 5.0.4 and updated more test cases to the support drive.
          Patrick Corless made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Patrick Corless made changes -
          Fix Version/s 5.0.4 [ 11072 ]
          Fix Version/s 5.0.3 [ 11070 ]
          Patrick Corless made changes -
          Fix Version/s 5.0.3 [ 11070 ]
          Fix Version/s 5.0.4 [ 11072 ]
          Hide
          Patrick Corless added a comment -

          Finally found the root of this spacing issue. A CID font can define a W or DW key in the font dictionary that can be used to override font widths define by the font program. In the problematic PDF's the glyphs where layed out using the W or DW values.

          It also appears that a DW or default width should only be respected if the W array is absent. The fix is a lot cleaner then previous attempts. Needs to pass QA but I'm pretty confident this one won't be opened again.

          Show
          Patrick Corless added a comment - Finally found the root of this spacing issue. A CID font can define a W or DW key in the font dictionary that can be used to override font widths define by the font program. In the problematic PDF's the glyphs where layed out using the W or DW values. It also appears that a DW or default width should only be respected if the W array is absent. The fix is a lot cleaner then previous attempts. Needs to pass QA but I'm pretty confident this one won't be opened again.
          Patrick Corless made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37270 Mon Jul 29 15:35:18 MDT 2013 patrick.corless PDF-587 fixed a layout issue caused by CID fonts that contain a DW or W width value.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #37479 Wed Aug 21 13:19:00 MDT 2013 patrick.corless PDF-587 fixed a layout issue caused by CID fonts that contain a DW or W width value.
          Files Changed
          Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/Parser.java
          Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Patrick Corless made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: