ICEpdf
  1. ICEpdf
  2. PDF-677

Irregular dash array causing JVM to crash

    Details

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

      Description

      The documents in question are generated using a very add dash array which is used to define a dashed line. The dash is defined as [ 7.617188 152407.6 ] 0 d where the dash would start at unit zero, paint 7.6 units and no paint for 152407 units which would paint a very unusual line.

      My best guess here is that the PDF encoder isn't applying the current users space transform for the first value. We can correct for this discrepancy and the end result is a line that is very close to hat acrobat does and the JVM no longer crashes when trying to paint the dashed line.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38844 Thu Nov 21 08:37:11 MST 2013 patrick.corless PDF-677 touched up the dash compensation to avoid comparing [0 largenumber] as zero is always less...
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38843 Thu Nov 21 08:36:35 MST 2013 patrick.corless PDF-677 touched up the dash compensation to avoid comparing [0 largenumber] as zero is always less...
        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 #38835 Wed Nov 20 13:55:30 MST 2013 patrick.corless PDF-677 added correction code of a dash base that has invalid values.
        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 #38834 Wed Nov 20 13:55:18 MST 2013 patrick.corless PDF-677 added correction code of a dash base that has invalid 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:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: