# huridocs/pdf-document-layout-analysis

A Docker-powered service for PDF document layout analysis. This service provides a powerful and flexible PDF analysis service. The service allows for the segmentation and classification of different parts of PDF pages, identifying the elements such as texts, titles, pictures, tables and so on.

Repository: https://github.com/huridocs/pdf-document-layout-analysis
Canonical: https://ross.abutalabs.com/products/pdf-document-layout-analysis
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-07-13T15:26:17+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 83, longevity 60
- inputs: {"age_days": 849, "days_push": 51, "days_rel": 119, "gap_med": 6, "n_releases_24m": 24}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1346, forks 141 (observed 2026-08-28T04:04:27.539951+00:00)

## What it is
A Dockerized microservice by HURIDOCS that performs PDF document layout analysis, OCR, and element segmentation/classification (texts, titles, tables, pictures, formulas). It exposes a Gradio web UI and a FastAPI REST API, and can convert PDFs to Markdown/HTML with translation via Ollama.

## Use cases
- segment and classify elements in pdf pages
- convert pdf to markdown or html
- run ocr on scanned pdf documents
- determine reading order of pdf elements
- self-host a pdf layout analysis api
- translate pdf documents automatically

## When to choose
- you need a self-hosted REST API or web UI for PDF layout analysis and OCR
- you want PDF-to-Markdown/HTML conversion with reading order preserved
- you have Docker and optionally a GPU for faster inference

## When to avoid
- you only need simple text extraction without layout segmentation
- you cannot run Docker containers in your environment
- you need a lightweight client-side PDF parser

## Facets
- artifact type: service
- maturity: active
- function: ocr, pdf, machine-learning, http-server, image-processing
- domain: pdf, computer-vision, developer-tools
- platform: python, self-hosted
- tags: document-layout-analysis, pdf-segmentation, pdf-to-markdown, gradio, fastapi, reading-order, document-conversion, natural-language-processing, docker, web-server, gpu

## Member repositories
- huridocs/pdf-document-layout-analysis (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.539951+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-30T04:42:41.701221+00:00, confidence not recorded.
  - readme: https://github.com/huridocs/pdf-document-layout-analysis (fetched 2026-08-28T04:04:27.539951+00:00, sha 8a90adf7cb91)
- Data as of 2026-08-30T08:39:29.467469+00:00.
