Registry / utility / pdfbox

pdfbox

JSON →
library3.0.7javamavenunverified

Java library for working with PDF documents, including creation, manipulation, and extraction of content.

<dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>3.0.7</version> </dependency>
INSTALL
IMPORT
SIG · PDFBOX
P
pdfbox
utilityjavav3.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PDDocument
org.apache.pdfbox.pdmodel.PDDocument

Loads a PDF document and prints the number of pages.

import org.apache.pdfbox.pdmodel.PDDocument; import java.io.File; public class Main { public static void main(String[] args) throws Exception { PDDocument document = PDDocument.load(new File("example.pdf")); System.out.println("Pages: " + document.getNumberOfPages()); document.close(); } }
Debug
Known issues
breakingPDFBox 3.x has breaking API changes from 2.x (e.g., package restructuring).
fix
Refer to the PDFBox 3 migration guide when upgrading.
affects: >=3.0.0
Upgrade
Version history
3.0.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pdfbox — mvn dependency:get pdfbox · libregistry