Menu

#59 ParsingSample fails with ArgumentOutOfRangeException

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

While running the sample application with ParsingSample I get the following exception. I'm not sure if this is just a messed up PDF or if there is some strange bug in PdfClown.

Document information:
An exception happened while running the sample:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at org.pdfclown.files.IndirectObjects.get_Item(Int32 index)
at org.pdfclown.objects.PdfReference.get_IndirectObject()
at org.pdfclown.objects.PdfReference.get_DataObject()
at org.pdfclown.objects.PdfObject.Resolve()
at org.pdfclown.objects.PdfObject.Resolve(PdfObject object)
at org.pdfclown.objects.PdfSimpleObject`1.GetValue(PdfObject obj, Object defaultValue)
at org.pdfclown.documents.interchange.metadata.Information.<system.collections.generic.ienumerable\<system.collections.generic.keyvaluepair\<org.pdfclown.objects.pdfname\,system.object>>.GetEnumerator>d__0.MoveNext()
at org.pdfclown.samples.cli.ParsingSample.Run()
at org.pdfclown.samples.cli.SampleLoader.Run(String inputPath, String outputPath)</system.collections.generic.ienumerable\<system.collections.generic.keyvaluepair\<org.pdfclown.objects.pdfname\,system.object>

Thanks,
Darren

1 Attachments

Discussion

  • Stefano Chizzolini

    The issue was caused by an indirect reference to an undefined object.

    Fixed on 0.1.2-Fix branch (rev 166) and 0.2.0 trunk (rev 167).

    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.