I work on an application that uses Aspose.Pdf.Kit 3.3.0.0 for .NET to extract information from PDF files.
We have found that Aspose is throwing exceptions processing several PDF files from one of our clients.
Some of the files cause the PdfContentEditor.ExctractLink method to throw a NullReferenceException.
Some of the files cause the same method to throw an IOException with the message “Invalid pdf format:pdf head signature is not found”.
One of the files causes the constructor for PdfFileInfo (the version that takes only a filename) to throw an ArgumentException with the message "Too long object name!"
All of the PDF files appear valid when viewed with Adobe Reader. They are attached.
Please let me know if there is a work around for these problems or if a fix is forthcoming.
Thanks.
Hi,
I've tested the scenario and I am able to notice the problem while Extracting Links from Pdf files, except for Pdf in "ArgumentException.Zip". I am unable to notice the problem with this file.
Whereas concerning to rest of the files, we are looking into the details of this problem, and will keep you updated with the status of correction.
We apologize for your inconvenience.
Thank you for your quick reply.
Regarding the ArgumentException file, note that the issue is reproduced differently than the other two issues. To reproduce that issue, you need to pass the filename to the PdfFileInfo constructor. The constructor then throws the ArgumentException. I’m not sure if I made that clear in my initial post. From your response it sounds like you were just calling ExtractLink for each issue.
Thanks again.
Hi,
I’ve tested the scenario using PdfFileInfo and I am also able to notice the issue with pdf in “ArgumentException.zip” file. Please spare us little time, as we are looking into the details of this problem.
Your patience in this regard is highly appreciated.
Hi,
Thanks for your reporting the problem and providing us the sample pdfs.
The issue of "ArgumentException" has been resolved. Please inform us if you need that fix separately.
As for the issue with extracting links, it had been logged as PDFKITNET-7530 in our issue tracking system, and we will try to resolve it ASAP.
Thanks,
Hi,
The issue PDFKITNET-7530 has been resolved. Please follow this link to download the beta version 3.3.1.6 (the attachment in my latest reply) and try it.
Thanks,