Javascript Code To Insert Page in PDF
Javascript Code To Insert Page in PDF
JavaScript > JavaScript for Acrobat API Reference > JavaScript API > Doc > Doc methods > insertPages
insertPages
5.0 D S X
Inserts pages from the source document into the current document. If a page range is
not specified, the method gets all pages in the source document.
Note: This method can only be executed during batch and console events. See
Privileged versus non-privileged context for details. The event object contains a
discussion of JavaScript events.
Parameters
nPage (optional) The 0-based index of the page after which to insert
the source document pages. Use -1 to insert pages before the
first page of the document.
cPath The device-independent path to the PDF file that will provide the
inserted pages. The path may be relative to the location of the
current document.
Example
1 of 1 28-Jan-17 11:35 PM