We are using your product to parse text, concatenate and renumber pdf documents, and your tools have been working great. We are into our verification cycle, and we came across a specific pdf file that throws the following exception when we call the AddStamp method:
Item has already been added. Key in dictionary: ''.'' Key being added: ''.''
The stack trace:
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at Aspose.Pdf.OperatorCollection.( )
at Aspose.Pdf.OperatorCollection.( )
at Aspose.Pdf.OperatorCollection..ctor( , )
at Aspose.Pdf.OperatorCollection..ctor( )
at Aspose.Pdf.Page.get_Contents()
at Aspose.Pdf.Resources.(Page )
at Aspose.Pdf.Page.get_Resources()
at Aspose.Pdf.TextStamp.Put(Page page)
at Aspose.Pdf.PageNumberStamp.Put(Page page)
at Aspose.Pdf.Page.AddStamp(Stamp stamp)
at MUSE.Services.Reports.Pdf.PdfGenerator.PageWaterMark(String pdfPath)
Since this is working for the hundreds of other pdf we are testing with we believe that the code is correct, and it is some specific property of the pdf file causing the exception, however we have not been able to isolate this and thought it would be easy for you to diagnose.
We are using File Version 7.7.0.0 Product Version 2013.02.05 of the Aspose.Pdf.dll
and I have attached the specific pdf file.
Thanks and I look forward to a response.