Hello,
First of all thanks for the great library, it is excellent and very useful.
I have found that sometimes the image PDFDictionary, contains an element for "Filter" which is actually a PDFArray with a single element.
This causes an error as the PDFDictionaryExtension#ToImage method calls dictionary.Elements.GetName("/Filter") which fails if the element is a PDFArray.
I cannot attach a sample PDF as it contains sensitive information, but I you are very interested I can try to generate one.
I have done a crude modification to PDFDictionaryExtensions to check if the /Filter element is an array, if so then extracts the first element to determine the filter. However I am sure there must be a better way...
Cheers
Hello, First of all thanks for the great library, it is excellent and very useful. I have found that sometimes the image PDFDictionary, contains an element for "Filter" which is actually a PDFArray with a single element. This causes an error as the PDFDictionaryExtension#ToImage method calls
dictionary.Elements.GetName("/Filter")
which fails if the element is a PDFArray. I cannot attach a sample PDF as it contains sensitive information, but I you are very interested I can try to generate one. I have done a crude modification to PDFDictionaryExtensions to check if the /Filter element is an array, if so then extracts the first element to determine the filter. However I am sure there must be a better way... Cheers