Pdf

Ancestor type: CObject

This type of object represents entire document. Note to page manipulation - page numbers start from number 1 (not from zero as some programmers may expect), number of last page is equal to count of pages.

Returns true if document is opened in read-only mode, false if in read-write mode
Returns true if document is encrypted.
Return true, if document is linearized PDF, false otherwise
Return true if document is protected and opening the document reqires credentials (usually a password), false otherwise.
Check for PDF validity - return true, if this object is valid PDF document, false if the PDF document was closed or not yet opened (so the object is invalid)
Close the document. If the document was opened directly in editor window (with openFile function), it won't be closed, you must use closeFile() function for this. However, all documents loaded with loadPdf function should be closed using this function.
Save this document under different name. Does not modify name of file in editor, original file is still edited, not this one. Does not check for file existence - it will overwrite the file without warning if it already exists Return true if document was saved, false if it failed to save for any reason
Save document to disk under original name If newRevision is true, create new revision while saving. Return true if saved successfully, false if failed to save because of any reason
Sets PDF password to use for decryption. Needed for opening password-protected documents Return true if the password was successfully set, false in case of error (bad password ...)
Get document dictionary (object catalog)
Remove page with given number from document.
Get position of given page in document or -1 in case of error (page not in document, invalid page, etc...)
Get number of pages in document
Insert given page in document, at given position. Return inserted page.
Return page from document, given its page number.
Return first page in document.
Return last page in document.
Return next page in document, relative to specified page.
Return previous page in document, relative to specified page.
Return true, if there is next page in document for given page.
Return true, if there is previous page in document for given page.
Return number of available revisions in document
Return number of currently active revisions