Tag a PDF
Infers a structure tree for an untagged PDF, so screen readers can follow it.
POST/forms/pdf/autotag
Form data
Options
No options.
Tag an existing PDF
curl \
--request POST http://localhost:3000/forms/pdf/autotag \
--form files=@report.pdf \
-o report.pdf
/forms/pdf/info then answers "tagged": true. A PDF you make tags better at the source, from its HTML or its document: Chromium and LibreOffice take nativeTaggedPdf. For PDF/UA, remediate the PDF, which tags it too.
In a list of stages
The stage also runs in a list on /forms/pdf/pipe, and on the PDFs a Chromium or LibreOffice conversion makes, in its stages field:
curl \
--request POST http://localhost:3000/forms/pdf/pipe \
--form files=@report.pdf \
--form 'stages=[
{ "op": "autotag" }
]' \
-o report.pdf