Hi
I found that method Save of Aspose.Pdf.Document throws an exception after the following actions: add image, add text, add one more image.
Demo project where the problem is shown:
https://drive.google.com/file/d/0B-CEaN01bFt3dGEzVEk2ZEREQVU/view?usp=sharing
Exception:
System.InvalidCastException: Unable to cast object of type ' ' to type ' '.
at .()
at .(String )
at . ()
at .()
at . ( , Boolean )
at . ( )
at .( )
at .( , )
at .( , , Page )
at .( , Page )
at .( , Page )
at .(Page , OperatorCollection , Resources , Int32 , )
at .(Page , )
at .()
at . ()
at .()
at . (XmlTextWriter , PdfFormat , Document , Boolean , ConvertErrorAction )
at Aspose.Pdf.Document.(XmlTextWriter , PdfFormat , Boolean , ConvertErrorAction )
at Aspose.Pdf.Document.Save(Stream output)
at AsposeTest.PdfImageEditor.InsertPngImageIntoDocument(Stream document, Stream image, Int32 pageNumber, Double imageHeight, Double imageWidth, Double imageLeft, Double imageBottom, Stream& output) in C:\Tak\Projects\AsposePdfTest\InsertImageTest_ErrorTest\AsposeTest\PdfImageEditor.vb:line 47