ICEpdf
  1. ICEpdf
  2. PDF-189

Name cannot be cast to org.icepdf.core.pobjects.Stream

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      -

      Description

      The second page in the attached PDF does not display and the following exception is thrown:


      FINE: Error initializing Page.
      java.lang.ClassCastException: org.icepdf.core.pobjects.Name cannot be cast to org.icepdf.core.pobjects.Stream
      at org.icepdf.core.pobjects.fonts.nfont.Font.init(Unknown Source)
      at org.icepdf.core.pobjects.Resources.getFont(Resources.java:234)
      at org.icepdf.core.util.ContentParser.consume_Tf(ContentParser.java:2020)
      at org.icepdf.core.util.ContentParser.parseText(ContentParser.java:1147)
      at org.icepdf.core.util.ContentParser.parse(ContentParser.java:280)
      at org.icepdf.core.pobjects.Page.init(Page.java:369)
      at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1088)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:637)

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000C5Gks]
        Patrick Corless made changes -
        Fix Version/s 4.1.1 [ 10244 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: