2019.2

Table Of Contents
Pages collection object
The Pages collection object implements the IPages interface. This interface defines methods to
add, import, move or delete pages as well to access individual Page items.
It is accessed via the "PDF object" on page253.
IPages methods
Name Return
type
Description
"Count()" on the next
page
LONG Returns the number of items in the Pages collection, in
other words the number of pages in the PDF.
"Delete()" on the
next page
Deletes a page from the PDF.
"ExtractTo
(destFilename,
srcIndex, srcCount,
optimize)" on the
next page
Extracts pages from the PDF and creates a new file
with these pages.
"Insert(index,
*mediaSize)" on
page267
Inserts a new blank page in the PDF file.
"InsertFrom
(srcFilename,
srcIndex, srcCount,
destIndex)" on
page268
Inserts pages from another PDF file into this one. All
relevant resources are copied with the pages.
"InsertFrom2
(srcPages, srcIndex,
srcCount,
destIndex)" on
page268
Inserts pages from another IPages object into this one.
All relevant resources are copied with the pages.
Page 265