The attached PDF has a property called "Trapped". From what little I've been able to find out, it's a standard part of the PDF 1.3 specification, but it's usually not used or presented to the user or something like that. The problem is that it can't be accessed by name. The following code will fail with a null ref when it tries to access the "Trapped" property, but it will successfully read all the other properties:
Dim Document = New Aspose.Pdf.Document(FileName)
For Each PropertyName as String in Document.Info.Keys
Dim TempValue = Document.Info(PropertyName)
Next
Is the attached document improperly formatted, perhaps? We don't know very much about the TCPDF tool which was used to create the file in the first place, so perhaps it's malformed. Is there some way Aspose can read the Trapped property by name?
Note: we're using the workaround of accessing the values by index when we can't get them by name, so this isn't pressing. But being able to get a key from a hashtable that doesn't actually correspond to a value is troubling.
Thanks,
Michael Whalen
Dim Document = New Aspose.Pdf.Document(FileName)
For Each PropertyName as String in Document.Info.Keys
Dim TempValue = Document.Info(PropertyName)
Next
Is the attached document improperly formatted, perhaps? We don't know very much about the TCPDF tool which was used to create the file in the first place, so perhaps it's malformed. Is there some way Aspose can read the Trapped property by name?
Note: we're using the workaround of accessing the values by index when we can't get them by name, so this isn't pressing. But being able to get a key from a hashtable that doesn't actually correspond to a value is troubling.
Thanks,
Michael Whalen