SuspendPage
Page manipulation
Description
Marks a page as suspended so document-level work such as templates, fonts, resources and other pages can interleave with drawing
While a page is suspended every drawing call on it raises an exception, SelectPage rejects the page, and saving the document fails until the page is resumed
Syntax
Delphi
Function SuspendPage(Page: Integer): Integer;ActiveX
Function PDFlib::SuspendPage(Page As Long) As LongDLL
int DLSuspendPage(int InstanceID, int Page);Parameters
| Page | Page number to suspend, between 1 and PageCount |
|---|
Return values
| 1 on success, 0 when the page number is out of range or no document is loaded |
Remarks
Suspending an already suspended page is an idempotent success and does not change SuspendedPageCount
Inserting or deleting pages keeps the suspension flags aligned with the shifted page numbering