ICEpdf
  1. ICEpdf
  2. PDF-493

ClassCastException thrown when loading a PDF generated by ABBYY FineReader 11

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2, 4.3.3, 4.3.4
    • Fix Version/s: 5.0.0 alpha1, 5.0
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description


      The following error stack trace is thrown when loading a PDF created by ABBYY FineReader 11:

      java.lang.ClassCastException: java.util.Hashtable cannot be cast to org.icepdf.core.pobjects.fonts.Font
      at org.icepdf.core.pobjects.Resources.getFont(Resources.java:218)
      at org.icepdf.core.util.ContentParser.consume_Tf(ContentParser.java:2114)
      at org.icepdf.core.util.ContentParser.parse(ContentParser.java:258)
      at org.icepdf.core.pobjects.Page.init(Page.java:372)
      at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1072)
      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:662)

        Activity

        Hide
        Arran Mccullough added a comment - - edited

        PDF that shows the issue has been uploaded to \\iceads1\support\PDF\400\493=
        \Informe_de_Cynthia_D=C3=ADaz_02-12.pdf
        (Restricted to icesoft-internal-developers group)
        =20

        Show
        Arran Mccullough added a comment - - edited PDF that shows the issue has been uploaded to \\iceads1\support\PDF\400\493= \Informe_de_Cynthia_D=C3=ADaz_02-12.pdf (Restricted to icesoft-internal-developers group) =20
        Hide
        Patrick Corless added a comment -

        The PDF in question uses the result of an OCRscan and there are are numerous masks applied to the images. As part of the refactoring work for 5.0, this DF no longer exhibits the class cast exception.

        Show
        Patrick Corless added a comment - The PDF in question uses the result of an OCRscan and there are are numerous masks applied to the images. As part of the refactoring work for 5.0, this DF no longer exhibits the class cast exception.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: