Nutrient Web SDK
    Preparing search index...

    Interface ImportDocumentBeforeOperation

    Imports the provided document before the specified page index. treatImportedDocumentAsOnePage determines whether it will be treated as a single page for other document operations (e.g. a rotation) provided during the same call. After these operations are applied, the imported pages will behave like regular pages in the document.

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

    Importing the same document more than once in the same operations block is not allowed with the UI in order to prevent possible user mistakes, but can be done programmatically.

    interface ImportDocumentBeforeOperation {
        beforePageIndex: number;
        document: string | Blob | File;
        importedPageIndexes?: (number | [min: number, max: number])[];
        treatImportedDocumentAsOnePage?: boolean;
        type: "importDocument";
    }
    Index

    Properties

    beforePageIndex: number
    document: string | Blob | File
    importedPageIndexes?: (number | [min: number, max: number])[]
    treatImportedDocumentAsOnePage?: boolean
    type: "importDocument"