Click or drag to resize

deletePage Method

Deletes this page from the currently loaded document.

Syntax
JavaScript
function deletePage();

Parameters

None

Return Value

Type: Boolean

true if operation completed successfully; otherwise, false.

Remarks

This page can not be deleted if it is the last page in the document.

Examples
JavaScript
  var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance

//delete the current page
  myApi.getPageViewed().deletePage();
See Also

Other Resources