Click or drag to resize

PdfFormContentFlatten Method

Replaces the PdfFormContent in the PdfContentElementCollection with a PdfContentGroup that represents flattened representation of the PdfFormContent as specified in the PDF Specification ISO 32000-1:2008, section '8.10 Form XObjects' when the Do operator is applied to a form XObject.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntax
public PdfContentGroup Flatten(
	bool recursive = true
)

Parameters

recursive  Boolean  (Optional)
If set to then all the descendant PdfFormContent elements will also be flattened so that returned PdfContentGroup won't contain any descendant PdfFormContent element.

Return Value

PdfContentGroup
A PdfContentGroup that represents a flattened representation of the PdfFormContent and replaces it in the PdfContentElementCollection.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe PdfFormContent is not contained in any PdfContentElementCollection.
Remarks

A PdfContentGroup that represents a flattened representation of the PdfFormContent has the following properties and behavior:

See Also