Pages -- document page collection object
This refers to a collection of pages. You can calculate the number of pages in the current document. you can insert or delete pages in the collection.
Attribute:
Count: number of pages in the current page set.
Item: Get the Page Object of the specified index. The index value starts from 0.
Method:
Add: Insert a blank page with a specified height, width, and rotation angle.
Addpagefromfile: extracts the specified page from other documents and inserts it into the current document. You can also specify the insertion position.
Delete: Delete the Page Object of the specified page number. The page number must be continuous, for example, "1-5 ".
Extract: extract the page specified in the document and save it as another PDF document.
Rotate: rotate a page within the specified page range.
Crop: crop the specified page size.
Demo:
1. Obtain the number of pages
Alert (application. Documents. activedocument. pages. Count );
2. Insert a page of A4 paper size. The height and width are measured in points, not pixels.
Application. Documents. activedocument. pages. Add (592,842, 0,-1 );
For more details, see the description of function interfaces.
If you have any questions, add Q: 2732390655.
Pages of the istylepdf interface object