AIAny
AI Image2024
GitHub

pdf-document-layout-analysis

Segments each PDF page into 11 labeled regions — titles, tables, formulas, figures, footnotes and more — and recovers reading order. Offers two engines: an accurate VGT visual model (~0.96 F1) or a faster CPU-only LightGBM ensemble.

Introduction

Most PDF parsers treat a page as a flat stream of text, which is why tables collapse and reading order scrambles the moment a layout goes two-column. This service starts from the opposite premise: work out the geometry first — what's a title, a footnote, a table, a formula — and only then extract text in the right order.

What Sets It Apart
  • Two interchangeable engines for the same job: a Vision Grid Transformer (originally from Alibaba's research group) that reads the whole page image for ~0.96 F1 on PubLayNet, and a Poppler + LightGBM ensemble that runs ~0.42s/page on CPU. So you trade accuracy against hardware instead of being locked to a GPU.
  • Eleven distinct segment labels — caption, footnote, formula, list item, page header/footer, picture, section header, table, text, title — not just "text vs. image". Downstream RAG or extraction can filter or weight regions by type.
  • It goes past detection into reconstruction: reading-order sorting, Tesseract OCR in 150+ languages, tables to HTML, formulas to LaTeX, plus Markdown/HTML export. One container turns a scanned PDF into structured, machine-usable output.
Who It's For + Tradeoffs

Great fit if you're building a document-ingestion or RAG pipeline and need clean, typed, correctly ordered segments from messy real-world PDFs — especially scanned or multi-column ones — and want to run it as a self-hosted Docker microservice, picking the engine per workload. Look elsewhere if you only need plain text from clean digital PDFs (a lightweight extractor is enough), or if you can't host a GPU and the CPU LightGBM accuracy falls short for your domain.

Information

  • Websitegithub.com
  • AuthorsHURIDOCS
  • Published date2024/05/06

Categories

More Items

Hugging Face
AI Image2026

Runs the FLUX 3 Image Klein single-file checkpoint in ComfyUI for text-to-image generation and instruction-driven image editing with up to ten reference images, bounding-box layout control, and distilled/base variants; requires a prompt upsampler.

Hugging Face
AI Image2026

Open-weight 5.6B FLUX.3 image model for text-to-image and multi-reference image editing with pixel-accurate bounding-box layout control. Ships distilled (fast, low-step) and base (fine-tuneable) checkpoints and runs on consumer GPUs down to an RTX 3090.

GitHub
AI Image2026

Build and run node-based AI image and video generation pipelines locally — chain prompts, models, reference images and automations on an infinite canvas. Key differentiators: multi-model pipelines and local-first operation (bring your own kie.ai key), so you keep media and credits under your control.