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

Free Support Forum - aspose.com

Wrong type of object. Stream should be of Type=ObjStm

when i open and add a LinkAnnotation in the pdf document ,then call save , throw a exception like this : Wrong type of object. Stream should be of Type=ObjStm. the pdf document is used-doc.pdf (98.7 KB)

what can i do to fix it

this.FileStream = new MemoryStream();

_doc.Save(this.FileStream);

@CharlieChu

Thank you for contacting support.

Would you please share narrowed down code snippet so that we may try to reproduce and investigate it in our environment.

@CharlieChu

We have worked with the data shared by you but the issue is not reproduced. Would you please upgrade to Aspose.PDF for .NET 18.11 and then share your kind feedback with us. In case the issue persists, please share narrowed down sample application with us.

I share my demo on my onedrive.
https://1drv.ms/f/s!Aqgj46dInJL-gdQQZ65yRA2sXp-FMw

@CharlieChu

Thank you for sharing requested data.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45655 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Hello, is there any update on this issue. I am seeing this same error. Thank you.

@serradjs

Thank you for contacting support.

We are afraid PDFNET-45655 is currently pending for investigations owing to previously logged tickets. It will be scheduled on its due turn which may take some months. However, please share a narrowed down sample application along with source files so that we may ensure addressing your concerns as well.