2022.2

Table Of Contents
SetVersion (major, minor)
Sets the version of the underlying PDF file format. This is applied when the file is saved. See also:
"Save()" on page201.
Syntax
VOID SetVersion ( LONG major, LONG minor )
major
Major version number.
minor
Minor version number.
SetXMP(xmpPacket)
Sets the XMP attachment by replacing the existing one with xmpPacket.
Syntax
VOID SetXMP ( STRING xmpPacket )
xmpPacket
New XMP attachment to use instead of the existing one.
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 page194.
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 page205 Inserts a new blank page in the PDF file.
"InsertFrom(srcFilename, srcIndex,
srcCount, destIndex)" on page205
Inserts pages from another PDF file into this one. All relevant resources are copied with the
pages.
"InsertFrom2(srcPages, srcIndex,
srcCount, destIndex)" on page206
Inserts pages from another IPages object into this one. All relevant resources are copied with
the pages.
Page 203