Skip to content

PdfAnnotation.Flatten Method

Overloads

Name Description
Flatten() Merges the annotation appearance with the page content stream.
Flatten(PdfStructureElement) Merges the annotation appearance with the page content stream and sets the result as content item for the given structure element.

Flatten()

Merges the annotation appearance with the page content stream.

C#
public void Flatten()

Remarks

The annotation normal appearance is merged with the page content stream and the annotation is destroyed. After calling this method the annotation object is in an invalid state and cannot be used any longer.

Flatten(PdfStructureElement)

Merges the annotation appearance with the page content stream and sets the result as content item for the given structure element.

C#
public virtual void Flatten(PdfStructureElement structureElement)

Parameters

structureElement PdfStructureElement

The structure element that is associated with the annotation appearance.

Remarks

The annotation normal appearance is merged with the page content stream and the annotation is destroyed. After calling this method the annotation object is in an invalid state and cannot be used any longer.