Pages collection object
The Pages collection object defines methods to add, import, move or delete pages as well to access individual Page items.
It is accessed via the PDF object.
Pages methods
Name |
Return type |
Description |
---|---|---|
Integer |
Returns the number of items in the Pages collection, in other words the number of pages in the PDF. |
|
|
Deletes a page from the PDF. |
|
|
Extracts pages from the PDF and creates a new file with these pages. |
|
|
Inserts a new blank page in the PDF file. |
|
|
Inserts pages from another PDF file into this one. All relevant resources are copied with the pages. |
|
|
Inserts pages from another Pages object into this one. All relevant resources are copied with the pages. |
|
Page (see Page object) |
Returns a Page object from the PDF. Note that since Item() is the collection's default method, it can be omitted altogether (e.g. Pages(0) is the same as Pages.Item(0) ). |
|
|
Moves a range of pages within the same PDF. |