Nutrient Web SDK

ReferenceDocumentOperationsFlattenAnnotationsOperation

Interface FlattenAnnotationsOperation

Flattens the annotations of the specified pages, or of all pages if none is specified.

Flattening and importing a document where treatImportedDocumentAsOnePage in the same operations batch is not supported and will raise an error.

Interface

Properties

string[]
number

pageIndexes

Optional
number[]

targetLayerId

OptionalStandalone
number

When set, the flattened annotation content is placed into the OCG layer identified by this ID instead of directly into the page content. The layer must already exist in the document (see Instance#createLayer).

"flattenAnnotations"