2022.2

Table Of Contents
0-based index of the first page to copy.
srcCount
Number of contiguous pages starting from srcIndex to extract.
optimize
If true, optimize (linearize and garbage-collect) the output file.
Insert(index, *mediaSize)
Inserts a new blank page in the PDF file. See also: "Count()" on the previous page.
Syntax
VOID Insert (
LONG index,
IPdfRect * mediaSize
)
index
0-based index at which to insert the page. The page is inserted *before* the page at index "index ". To
insert a page at the end, use IPages.Count().
mediaSize
"IPdfRect" on page217 structure containing the rectangular dimensions of the new page, in points.
Cannot be NULL.
InsertFrom(srcFilename, srcIndex, srcCount, destIndex)
Inserts pages from another PDF file into this one. All relevant resources are copied with the pages. See
also: "Count()" on the previous page.
Syntax
VOID InsertFrom (
STRING srcFilename,
LONG srcIndex,
LONG srcCount,
LONG destIndex
)
srcFilename
Name of the PDF from which pages are retrieved.
srcIndex
0-based index of the first page to copy.
Page 205