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.

Wed Apr 30, 2025 11:07 am

Hi,

PdfDocument.SaveToFile in current version 10.2.0 loses the OCG layers of the PDF.
The content is still there, but the layers themselves are not saved, even when newly created with doc.Layers.AddLayer and layer.CreateGraphics(page.Canvas).
This was working in versions 8.6.0 and 8.7.2 (which I reverted to now).

Hope you can patch this regression soon,
K.

kristofvdw
 
Posts: 3
Joined: Fri Apr 25, 2025 1:27 pm

Thu May 01, 2025 3:47 am

Hello,

Thanks for your inquiry.
After preliminary testing, I did not reproduce the issue you mentioned. Could you please provide us with your test code and test files (if any) for our further investigation. You can upload them to the attachment or send them to this email [email protected]. Thank you in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 757
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDF

cron