Remove Tables from PDF via Java
Delete tables from PDF document using Aspose.PDF for Java Library
How to deleting Tables from PDF document Using Java Library
In order to delete table, we’ll use Aspose.PDF for Java API which is a feature-rich, powerful and easy to use conversion API for Java platform. You can download its latest version directly from Maven and install it within your Maven-based project by adding the following configurations to the pom.xml.
Delete Tables from PDF via Java
You need Aspose.PDF for Java to try the code in your environment.
- Load the PDF with an instance of Document.
- Create TableAbsorber object to find tables.
- Visit first page with absorber.
- Get first table on the page.
- Remove the table. Save the file.