ICEpdf
  1. ICEpdf
  2. PDF-1090

iText/ms office dash array format issue. .

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.3
    • Fix Version/s: 6.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      A client has sent in new example of the dash array issue that is causing Java2d a segment fault. We have seen this in the past the case examples have only contains two item dash arrays. The PDF in question has the following definitions:

      0.0 [3.8085938, 76203.805]
      0.0 []
      0.0 [133354.4, 177804.4, 4.445312, 177804.4]
      0.0 [5.714844, 114305.7]
      0.0 [133354.4, 177804.4, 4.445312, 177804.4]
      0.0 [5.714844, 114305.7]

      The probably is related to the 4.4 and 4.7 values. These values appear not to have been scaled to PDF space are causing the segment fault. If the values are multiplied by 1000 we get the correct values. The trick however is how to detect the error when encountered.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49777 Tue Jan 03 12:07:09 MST 2017 patrick.corless PDF-1090 improved detection of malformed dash arrays and adjustment of incorrect values.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49776 Tue Jan 03 12:07:00 MST 2017 patrick.corless PDF-1090 improved detection of malformed dash arrays and adjustment of incorrect values.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: