The deletePages method deletes pages from the document.
deletePages(System.Int32 nStart, System.Int32 nEnd);
nStart
[Optional] Page index for the first page to the range to delete. Page Index = Page number -1. Default value 0.
nEnd
[Optional] Last page to the range to delete. Page Index = Page number -1.
Returns None.
If the nEnd parameter is not specified, then it would be only the page from nStart will delete.
Member of doc.