Asynchronously replaces pages in the current PDF document.

A Promise that resolves to true if the replacement operation is successful, otherwise false.

interface ReplacePagesType {
    pageArr: number[];
    replaceDocPassword?: string;
    replaceDocSrc: string;
    start: number;
}

Properties

pageArr: number[]

An array of page numbers from the replacement document to be inserted.

replaceDocPassword?: string

The password for the replacement document if it is encrypted. Defaults to an empty string.

replaceDocSrc: string

The file path of the replacement document.

start: number

The starting page number for replacement. Defaults to 0, indicating replacement starts from the first page.