The document describes the doc.insertPages() function in PDFs, which inserts pages from one PDF into another. It takes optional arguments for the page number to insert after, and the page range to insert from the source PDF. By default, it will append the entire source PDF to the end of the destination PDF. Examples are provided to insert a source PDF after a specific page or to insert a single page from the source.
The document describes the doc.insertPages() function in PDFs, which inserts pages from one PDF into another. It takes optional arguments for the page number to insert after, and the page range to insert from the source PDF. By default, it will append the entire source PDF to the end of the destination PDF. Examples are provided to insert a source PDF after a specific page or to insert a single page from the source.
The document describes the doc.insertPages() function in PDFs, which inserts pages from one PDF into another. It takes optional arguments for the page number to insert after, and the page range to insert from the source PDF. By default, it will append the entire source PDF to the end of the destination PDF. Examples are provided to insert a source PDF after a specific page or to insert a single page from the source.
The document describes the doc.insertPages() function in PDFs, which inserts pages from one PDF into another. It takes optional arguments for the page number to insert after, and the page range to insert from the source PDF. By default, it will append the entire source PDF to the end of the destination PDF. Examples are provided to insert a source PDF after a specific page or to insert a single page from the source.
To insert pages into PDF use the “doc.insertPages()” function
Input Arguments: • nPage: 0 based page number after which to inset pages in the destination PDF • cPath: Device Independent Path to source PDF • nStart: 0 based page number of first page in source PDF to insert into destination PDF • nEnd: 0 based page number of last page in source PDF to insert into destination PDF Copyright 2008 by WindJack Solutions www.windjack.com Page 2 Insertion Destination Document Sample file for Page Insertion Article
All input arguments to the “doc.insertPages()” function are optional
except for “cPath”. Input Argument Defaults: • nPage: First page in destination document • cPath: Not Optional, may crash Acrobat if not specified • nStart: First page of source PDF • nEnd: Last page of source PDF By default, this function appends the entire source PDF to the end of the destination PDF Copyright 2008 by WindJack Solutions www.windjack.com Page 3 Insertion Destination Document Sample file for Page Insertion Article Example code: Run from “InsertDest.pdf” scripting context • Inserts entire source PDF after Page 1 in current PDF this.insertPages({cPath:”InsertSource.pdf”}); • Inserts entire source PDF after page 2 of current PDF this.insertPages(1,”InsertSource.pdf”); • Inserts page 3 of source PDF after page 1 of current PDF this.insertPages({cPath:”InsertSource.pdf” nStart:2, nEnd:2});