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.

Sat May 18, 2019 12:40 am

Hello,

Is there any functionality where I can get the any element to be "visible but unprintable" or "hidden but printable"?

chintalpatel89
 
Posts: 16
Joined: Sun Dec 25, 2016 9:54 am

Mon May 20, 2019 8:54 am

Hello,

Thanks for your inquiry.
Sorry that there isn't a functionality to get the element "visible but unprintable" or "hidden but printable" of PDF form field at present, if it is available in the future, we will let you know.

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Thu Dec 15, 2022 8:52 am

Hello,

Thanks for your patient waiting.
Glad to inform you that the new feature of toggling the field visibility is available, please download the hotfix (Spire.PDF Pack(Hot Fix) Version:8.12.5) from the following link.
Website download link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget download link: https://www.nuget.org/packages/Spire.PDF/8.12.5

And the use the following code to test.
Code: Select all
Spire.Pdf.Fields.PdfField field = formWidget.FieldsWidget.List[0] as Spire.Pdf.Fields.PdfField;
//field.AnnotationFlags = Spire.Pdf.Annotations.PdfAnnotationFlags.Default; // Visible
field.AnnotationFlags = Spire.Pdf.Annotations.PdfAnnotationFlags.Hidden; // Hidden

Sincerely,
Lisa
E-iceblue support team
User avatar

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

Return to Spire.PDF