Install libpdfbox2-java by entering the following commands in the terminal:
sudo apt update sudo apt install libpdfbox2-java
PDF library for Java
The Apache PDFBox library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. . This package contains version 2 of the library which is backwards incompatible.