PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFAnnotation Class / flatten Method / flatten(PDFStructureElement) Method
The structure element that is associated with the annotation appearance.
Collapse All Expand All
In This Topic

flatten(PDFStructureElement) Method
In This Topic
Merges the annotation appearance with the page content stream and sets the result as content item for the given structure element.
After the annotation is flattened, it is removed from the page's annotations collection.
Syntax

    public void flatten(
       PDFStructureElement structureElement
    )

#### Parameters

structureElement
  The structure element that is associated with the annotation appearance.

See Also

#### Reference

PDFAnnotation Class
PDFAnnotation Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.