Removing Form Fields in PDF (.NET Core/Framework)
Removing Form Fields in PDF using DynamicPDF Merger is simple and easy.
How to remove Form Fields in C#
Below are the steps and sample code to remove Form Fields in PDF using the DynamicPDF Merger product.
Steps for Removing Form Fields in PDF
- Create a
MergeDocument
object with the desired pdf. - Set the output property to Remove for the desired field (Optionally, Remove can be set to the Output property directy to remove all form fields).
- Save the PDF document.
Sample Code - C#
MergeDocument document = new MergeDocument( "output.pdf" );
document.Form.Fields[0].Output = FormFieldOutput.Remove;
//below line of code will remove all form fields
//document.Form.Output = FormOutput.Remove;
document.Draw( "output.pdf" );
Getting Started
NuGet Package
DynamicPDF Merger is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET
package. The Core Suite package includes Generator, Merger and ReportWriter.
NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET
DynamicPDF Merger Information
More information can be found here:
Available in Other Platforms
DynamicPDF Merger PDF Library is available for Java and COM/AxtiveX platforms. Refer to the respective product pages for more details.
- Java - DynamicPDF Merger for Java
- COM/ActiveX - DynamicPDF Merger for COM/ActiveX