Menu

#58 ParsingSample fails with "Unknown type: Keyword"

0.1.2.1
closed-fixed
Parsing (2)
1
2015-03-10
2014-10-01
No

While running the parsingsample on the attached file I get this exception.

Document information:
Title: combo
CreationDate: 8/18/2014 8:13:40 AM
ModDate: 8/18/2014 8:13:40 AM
Producer: ImageMagick 6.6.9-7 2012-08-17 Q16 http://www.imagemagick.org

Document metadata (XMP):
No metadata available (Metadata stream doesn't exist).

Iterating through the indirect-object collection (please wait)...
An exception happened while running the sample:
System.Exception: Unknown type: Keyword
at org.pdfclown.tokens.BaseParser.ParsePdfObject()
at org.pdfclown.tokens.FileParser.ParsePdfObject()
at org.pdfclown.objects.PdfIndirectObject.get_DataObject()
at org.pdfclown.samples.cli.ParsingSample.Run()
at org.pdfclown.samples.cli.SampleLoader.Run(String inputPath, String outputPath)

The PDF appears to have no Keywords in Acrobat but yet it must.

Thanks,
Darren

1 Attachments

Discussion

  • Stefano Chizzolini

    The exception was caused by the incorrect parsing of empty indirect objects (it assumed that any indirect object would explicitly contain a PDF object).

    Fixed on 0.1.2-Fix branch (rev 161) and 0.2.0 trunk (rev 162).

    thank you

     
  • Stefano Chizzolini

    • status: open --> closed-fixed
    • Group: v1.0_(example) --> 0.1.2.1
    • Priority: 5 --> 1
     

Log in to post a comment.

MongoDB Logo MongoDB