We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exceptions on multiple save calls

Hi -

I have a problem where I need to call save so I can get the current page count. The initial save works, but the second save causes the following exception:

java.lang.IllegalArgumentException: Invalid image or template handle in PlaceImage method.

at aspose.pdf.figure.Aba.a(SourceFile:521)

I tried adding pdf.pdfInitForMultiSave(); to my init. No difference.

Hi Dave,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please share your code with us to show the issue. This will help us re-generated the issue at our end and identify the cause soon.

Thank You & Best Regards,