Sign inSign up

madnight/pdf-layout-text-stripper

By madnight

•Updated over 9 years ago

Converts a pdf file into a text file while keeping the layout of the original pdf.

Image
0

522

madnight/pdf-layout-text-stripper repository overview

⁠PDFLayoutTextStripper as docker container command-line utility

Converts a PDF file into a text file while keeping the layout of the original PDF. Useful to extract the content from a table or a form in a PDF file. PDFLayoutTextStripper is a subclass of PDFTextStripper class (from the Apache PDFBox⁠ library).

  • Use cases
  • How to use

⁠Use cases

⁠Data extraction from a table in a PDF file example

Data extraction from a form in a PDF file example

⁠How to use

# i do it myself
docker build -t pdf-layout-text-stripper .
docker run -v $(pwd):/app pdf-layout-text-stripper "sample.pdf"

# i'm lazy
docker run -v $(pwd):/app madnight/pdf-layout-text-stripper "sample.pdf"

Tag summary

Content type

Image

Digest

Size

92.1 MB

Last updated

over 9 years ago

docker pull madnight/pdf-layout-text-stripper