ipavlic
ipavlic

Reputation: 4956

Java library for PDF page splitting

Is there a Java library for PDF page splitting (not document). The final purpose is to parse text from each of the splits separately.

As an example, let's say I want to cut every pdf page into 4 pieces vertically -- see illustration:

Pdf page cut

Upvotes: 1

Views: 361

Answers (1)

madth3
madth3

Reputation: 7344

After clarifying you want to parse text, there is this iText sample ExtractPageContentArea or (as mentioned by @ipavlic) the PDFTextStripperByArea class from the Apache Pdfbox project.

Upvotes: 3

Related Questions