Skip to content
ComPDF
Guides

Delete Pages

This example shows how to delete pages:

java
document.removePages(new int[]{0});
kotlin
document.removePages(intArrayOf(0))

When the document is bound and displayed through CPDFReaderView, after modifying the document pages, you need to call the following method to refresh the view so that the changes take effect immediately:

java
cpdfReaderView.reloadPages();