Sign inSign up

pdfix/pdf-accessibility-docling

By pdfix

Updated 26 days ago

Image
0

5.0K

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.2.26 <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
--per_pagenoBoolean string (default: false)Process page by page
--bbox_overlapnoFloat (default 0.6)Docling bbox overlap threshold

Examples

Tag a PDF:

docker run --rm -v "$(pwd)":/data -w /data pdfix/pdf-accessibility-docling:v1.2.26 \
  tag --name "${LICENSE_NAME}" --key "${LICENSE_KEY}" \
  -i /data/input.pdf -o /data/output.pdf \
  --do_image_description true --do_formula_recognition true --per_page true

Create a layout template JSON:

docker run --rm -v "$(pwd)":/data -w /data pdfix/pdf-accessibility-docling:v1.2.26 \
  template --name "${LICENSE_NAME}" --key "${LICENSE_KEY}" \
  -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:d472cecab

Size

6.4 GB

Last updated

about 1 month ago

docker pull pdfix/pdf-accessibility-docling