Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 983 Bytes

File metadata and controls

14 lines (10 loc) · 983 Bytes

Flatten form fields in C# and VB.NET

This sample shows how to flatten form fields in a PDF document using Docotic.Pdf library.

To flatten form fields in a PDF file, please use the PdfDocument.FlattenControls method. This method draws each control on its parent page and then removes the control from the document.

Flattening locks form fields from editing and can significantly reduce output file size.

Alternatively, you can:

  1. Flatten controls and annotations using the PdfDocument.FlattenWidgets method
  2. Flatten individual controls or annotations using the PdfWidget.Flatten method

See also