I downloaded PDFBox 1.8.6 from Apache
Then I copied it to the "res" folder created in the root Java / Eclipse project. Then I right-clicked on the project, went to properties, then to the Java build path, then to Libraries, then clicked the Add JARS ... button and added it and my documentation.

From now on, in my code, I could import the (ish) PDFBox.
For example, I see:
import org.apache.pdfbox.pdmodel.*;
But, if you want to do something useful, you need to import more, often in the form:
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import org.apache.pdfbox.pdmodel.font.PDFont;
For some strange reason, I see, I don’t see these ...

Can someone please explain this to me?
source
share