Some test text!

Removing pages

Pages can be removed from the PDF document using the removePages function.

viewerElement.addEventListener('documentLoaded', function() {   
  var docViewer = myWebViewer.getInstance().docViewer;
  var doc = docViewer.getDocument();
  var page1 = 1, page2 = 2, page3 = 3;

  docViewer.getPageCount(); // 3

  doc.removePages([page2]).then(function(pagesArray) {
    // at this point page 2 has been removed from the document
    docViewer.getPageCount(); //2
  });
});

Get the answers you need: Support