An array of page numbers from the replacement document to be inserted.
OptionalreplaceThe password for the replacement document if it is encrypted. Defaults to an empty string.
The file path of the replacement document.
The starting page number for replacement. Defaults to 0, indicating replacement starts from the first page.
Asynchronously replaces pages in the current PDF document.
Returns
A Promise that resolves to true if the replacement operation is successful, otherwise false.