Skip to main content

PDF flattening

available from v3.1.0

We created an endpoint to flatten pdf forms for archiving purposes

/pdf_flat expects pdf file with form fields and returns a pdf file with the form fields flattened

If the pdf file is UA compliant, it will be processed accordingly and the forms will be tagged too after flattening.

curl --location 'http://localhost:8000/pdf_flat' \
--form 'template=@"filled-form.pdf"'
note

Unfortunately due to the inner structure of pdf we cannot automatically tag already existing elements, which means that screen readers will have a hard time finding a structure in the PDF templates which are not tagged initially. To solve this, we recommend that the pdf templates cleaned up and updated to the pdf 1.7 standard. If you want to know more, check out the PDF standards

If you'd like an overview of our API please check the reference API Reference.