ImageEn, unit iexUserInteractions

TIEPdfViewer.DeletePages

TIEPdfViewer.DeletePages


Declaration

function DeletePages(PgIndex: Integer): Boolean; overload;
function DeletePages(PgIndex, PgCount: Integer): Boolean; overload;
function DeletePages(Pages: array of Integer): Boolean; overload;


Description

Delete pages from the document.

The pages to delete are specified by a PgIndex or the Pages array. If a null value is specified, the method fails.
PgIndex is used to delete a single page (or specified count).
Pages is an array of page indexes, e.g. [0, 2, 4, 5, 6]. NOTE: The values must be ordered!

Note: DocModified will be true after deletion


Demos

Demo  Demos\PDF\PDFViewer\PdfViewer.dpr
Demo  Demos\PDF\PDFPageDragDrop\PDFPageDD.dpr


Examples

// Delete pages from the document
ImageEnView1.PdfViewer.DeletePages([ 3, 4, 8, 9 ]);

// Delete the current page
ImageEnView1.PdfViewer.DeletePages( ImageEnView1.PdfViewer.PageIndex );


See Also

DeletePagesFromPDF
ImportPages
MovePages