RemovePage
PowerScript function
Description
Removes a page from the PDF document.
Applies to
PDFDocument object in Objects and Controls
Syntax
|
1 |
long RemovePage(PDFPage page) |
|
1 |
long RemovePage(long index) |
|
Argument |
Description |
|---|---|
|
page |
The PDFPage object to be removed from the document. |
| index | The page index in the PDF document at which the page shall be removed. |
Return value
Long. Returns 1 if it succeeds. If an error occurs. For more errors,
see the Error Codes.
Usage
Call the function to remove a page from the PDF document. You may
either specify the PDFPage object and remove it, or specify the index at
which the PDFPage object exists and then remove it.
Examples
The following example removes the PDFPage object with index =
1:
|
1 2 |
//Remove the PDFPage object with index = 1 lpdf_doc.removepage(1) |
The following example removes the specified PDFPage object:
|
1 2 |
//Remove lpdf_page lpdf_doc.removepage(lpdf_page) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest