HUB
Sign inSign up
pdf-accessibility-docling logo

pdfix/pdf-accessibility-docling

By pdfix

•Updated 11 days ago

Image
0

7.8K

pdfix/pdf-accessibility-docling repository overview

⁠PDF Accessibility Docling

Uses Docling-Layout for layout recognition, running fully offline. For PDF output without watermarks, a PDFix SDK license is required.

⁠Table of Contents

⁠Getting started

You need Docker installed. The first run downloads the image and may take longer than later runs.

⁠Usage

Mount a folder into the container and run a subcommand:

docker run --rm -v "$(pwd)":/data -w /data pdfix/pdf-accessibility-docling:v1.3.4 <command> [options]

⁠Commands

  • tag: Autotag a PDF (PDF → PDF)
  • template: Create a PDFix layout template JSON (PDF → JSON)

⁠Arguments

⁠Common (tag and template)
OptionRequiredType / expected valueDescription
--input, -iyesPath to an existing .pdf fileInput PDF
--output, -oyesPath for .pdf (tag) or .json (template)Output file
--namenoString (PDFix account license name)PDFix license name
--keynoString (PDFix account license key)PDFix license key
--do_image_descriptionnoBoolean string: true/false, yes/no, 1/0 (default: false)Alt text for Figure tags
--do_formula_recognitionnoBoolean string (default: false)Formula recognition
--bbox_overlapnoFloat (default 0.6)Docling bbox overlap threshold
--chaptersnoBoolean string (default: true)true: structure the document into chapters and sections (Part, Sect) by its headings; false: structure the document by pages
--rendernodefault or hybrid (default: default)How pages are rendered for layout recognition. default: docling-parse, better results for tables; hybrid: pypdfium and docling-parse, better results for lists
⁠tag only
OptionRequiredType / expected valueDescription
--sequential_headingsnoBoolean string (default: false)Keep headings in sequentially descending order: a heading that skips a level is tagged as a paragraph

⁠Examples

Tag a PDF:

docker run --rm -v "$(pwd)":/data -w /data pdfix/pdf-accessibility-docling:v1.3.4 \
  tag --name "${LICENSE_NAME}" --key "${LICENSE_KEY}" \
  -i /data/input.pdf -o /data/output.pdf \
  --do_image_description true --do_formula_recognition true \
  --bbox_overlap 0.8 \
  --chapters false \
  --render hybrid

Create a layout template JSON:

docker run --rm -v "$(pwd)":/data -w /data pdfix/pdf-accessibility-docling:v1.3.4 \
  template -i /data/input.pdf -o /data/output.json

⁠Model

The image includes the Docling-Layout model and runs fully offline (CPU).

⁠Help & support

For PDFix SDK licensing or issues, contact [email protected].

⁠Licenses

Tag summary

Content type

Image

Digest

sha256:335649d0b…

Size

4.4 GB

Last updated

11 days ago

docker pull pdfix/pdf-accessibility-docling