# JonathanLink/PDFLayoutTextStripper

Converts a pdf file into a text file while keeping the layout of the original pdf. Useful to extract the content from a table in a pdf file for instance. This is a subclass of PDFTextStripper class (from the Apache PDFBox library).

Repository: https://github.com/JonathanLink/PDFLayoutTextStripper
Canonical: https://ross.abutalabs.com/products/pdflayouttextstripper
Homepage: https://jonathanlink.ch/PDFLayoutTextStripper.html
Language: Java
License: Apache-2.0
License Family: permissive
Topics: layout, text, java, pdf, extract, data-extraction, pdfbox
Last push: 2023-12-17T17:19:17+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3979, "days_push": 990, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1608, forks 213 (observed 2026-08-28T04:05:10.745063+00:00)

## What it is
A Java library that converts PDF files to text while preserving the original layout, built as a subclass of Apache PDFBox's PDFTextStripper. It is particularly useful for extracting data from tables and forms embedded in PDF documents.

## Use cases
- extract table data from a pdf
- convert pdf to text keeping layout
- parse pdf forms into text
- extract bank statement data from pdf
- parse pdf timetables for an app
- pdf data extraction in java

## When to choose
- you need layout-aware text extraction from PDFs on the JVM
- you want to pull tabular or form data out of PDFs programmatically
- you already use Apache PDFBox and need better text positioning

## When to avoid
- you need plain text without layout fidelity (PDFBox's default stripper suffices)
- you need OCR for scanned/image-only PDFs
- you work outside the Java/JVM ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: pdf, parser, ocr
- domain: pdf, files
- platform: jvm, cross-platform, cli
- tags: pdfbox, layout-preserving-text-extraction, table-extraction, form-extraction, java-library, data-engineering

## Member repositories
- JonathanLink/PDFLayoutTextStripper (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.745063+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:51:19.862090+00:00, confidence not recorded.
  - readme: https://github.com/JonathanLink/PDFLayoutTextStripper (fetched 2026-08-28T04:05:10.745063+00:00, sha 302c708b3f2e)
  - homepage: https://jonathanlink.ch/PDFLayoutTextStripper.html (fetched 2026-08-29T11:23:25.914928+00:00, sha a1b70c9a29cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
