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

This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!