Nutrient Web SDK
    Preparing search index...

    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 FlattenAnnotationsOperation {
        annotationIds?: string[];
        noteAnnotationBackgroundColor?: NutrientViewer.Color;
        noteAnnotationOpacity?: number;
        pageIndexes?: number[];
        targetLayerId?: number;
        type: "flattenAnnotations";
    }
    Index

    Properties

    annotationIds?: string[]
    noteAnnotationBackgroundColor?: NutrientViewer.Color
    noteAnnotationOpacity?: number
    pageIndexes?: number[]
    targetLayerId?: 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).

    type: "flattenAnnotations"