Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Oct 31, 2025 1:47 am

Spire.pdf - 11.3.0.0

Visual Studio 2022 - C#

The image created by PdfDocument SaveToFile does not show the annotations correctly. It shows a rectangle instead of the real annotation (see attached files).

PdfDocument WorkingDocument;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

WorkingDocument.SaveToFile("imageedit.pdf");
Image image = _pdfWorkingDocument.SaveAsImage(_index, Spire.Pdf.Graphics.PdfImageType.Bitmap, dpi, dpi);
image.Save("imageedit.bmp");
///////////////////////////////////////////////////////////////////////////////////////////////////////////////


Thanks

eddie.torres
 
Posts: 5
Joined: Thu Oct 16, 2025 6:06 pm

Fri Oct 31, 2025 3:48 am

Hello,

Thank you for your inquiry.
I reproduced your issue and logged it into our bug tracking system with the ticket SPIREPDF-7810. Our dev team will investigate and fix it, once it is resolved or there is any update, I will notify you immediately. Apologize for the inconvenience caused.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Fri Dec 26, 2025 7:32 am

Hello,

Thank you for your patience. Kindly note that our latest version (Spire.PDF Pack(Hotfix) Version:11.12.7) includes fixes and optimizations for SPIREPDF-7810 issue.
https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
https://www.nuget.org/packages/Spire.PDF/11.12.7
https://www.nuget.org/packages/Spire.PDFfor.NETStandard/11.12.7

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1510
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF