Formatwerk
pdf form flatten
Loads the PDF with pdf-lib, optionally fills text fields, checkboxes, radio groups, dropdowns and list boxes from a name to value map (unknown names, invalid options and over-long values are rejected), regenerates the appearances of changed fields (Helvetica, or embedded Liberation Sans for non-Latin-1 text) and flattens every field into the page content. XFA data is removed with a warning; encrypted PDFs are rejected. Returns the PDF and each field with its final value.
POST https://format.halowerk.com/v1/pdf-form-flattenInputs
| Field | Type | Required | Description |
|---|---|---|---|
| pdf_base64 | string | Yes | PDF with an AcroForm (max. 20 MB). |
| values | object | No | Field name → value (text, true/false for checkboxes, option for radio/dropdown, array for multi-select lists). |
| strict | boolean | No | Reject value names that do not exist in the form. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"pdf_base64"
],
"properties": {
"pdf_base64": {
"type": "string",
"maxLength": 28000000,
"description": "PDF with an AcroForm (max. 20 MB)."
},
"values": {
"type": "object",
"maxProperties": 500,
"additionalProperties": {
"type": [
"string",
"number",
"boolean",
"array"
],
"items": {
"type": "string"
}
},
"description": "Field name → value (text, true/false for checkboxes, option for radio/dropdown, array for multi-select lists)."
},
"strict": {
"type": "boolean",
"default": true,
"description": "Reject value names that do not exist in the form."
}
}
}Published input example
{
"pdf_base64": "JVBERi0xLjcKJYGBgYEKCjkgMCBvYmoKPDwKL0JCb3ggWyAwIDAgMTYxIDIxIF0KL01hdHJpeCBbIDEgMCAwIDEgMCAwIF0KL1Jlc291cmNlcyA8PAovRm9udCA8PAovSGVsdmV0aWNhIDUgMCBSCj4+Cj4+Ci9UeXBlIC9YT2JqZWN0Ci9TdWJ0eXBlIC9Gb3JtCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlCi9MZW5ndGggMTUyCj4+CnN0cmVhbQp4nDNUMABCQzCZnMtliMotBEJDBRAsSucyAIsGuQNFyrmiY4HsFIR6PVMwxjQCjQuiQKSRgUIOl6EZEgNEZ3A5cQVyGSkYAdUYKRhagqRMLREMI7CacK48Lv2QCgUnX2eg+5xCoC4DOlHfIzWnLLUk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uMTDFhqmmmmyH2f1M6oLjwAJafA9UKZW5kc3RyZWFtCmVuZG9iagoKc3RhcnR4cmVmCjk1NgolJUVPRg==",
"values": {
"name": "Erika Mustermann"
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Formatwerk0.004 USDC
accounting csv unify
POSThttps://format.halowerk.com/v1/accounting-csv-unifyDATEV booking batch files (EXTF/DTVF, category 21) are read by their documented field positions: amount and S/H become a signed amount relative to the account, Belegdatum TTMM is resolved within the fiscal year from the header. Other export
- Formatwerk0.005 USDC
avv checklist
POSThttps://format.halowerk.com/v1/avv-checklistChecklist after Art. 28 GDPR (Regulation (EU) 2016/679 Art. 28 (GDPR), https://eur-lex.europa.eu/eli/reg/2016/679/oj, German and English text retrieved from the EU Publications Office 2026-11-01): Art. 28(3) sentence 1 (subject-matter, dura
- Formatwerk0.004 USDC
bagit package
POSThttps://format.halowerk.com/v1/bagit-packageCreate: files go to data/, manifest-<alg>.txt and tagmanifest-<alg>.txt are written for SHA-256 (default), SHA-512 or legacy SHA-1/MD5, bag-info.txt gets your metadata plus Bagging-Date, Bag-Size and Payload-Oxum; paths are checked (no abso