ICEpdf
  1. ICEpdf
  2. PDF-443

OFont CIDWidth calculation type cast excpetion

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.3.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      OS version

      Description

      The forum user posted a PDF that would not render because of class cast exception when parsing out the /W or width entry for a CID font. The bug is quite strange as the we cast to Integer when the resultant is clearly of type Float. There most be corner case here where the /W entries are more commonly c[w1, w2 ... wn] and not c1, w1,c2,w2..cn, wn.

        Activity

        Hide
        Patrick Corless added a comment -

        Updated the calculateCIDWidths parsing logic to avoid the class cast error.

        Show
        Patrick Corless added a comment - Updated the calculateCIDWidths parsing logic to avoid the class cast error.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: