Fill a flat PDF form
Vendor registration data placed over the blanks of a flat PDF
- Template
- ODT
- Export as
- PDF, ODT, DOCX, HTML, PNG +25 more
- Carbone
- 5.18+
Fill flat PDF forms from your software
Many forms only circulate as flat PDFs, without any form fields, so there is nothing to fill programmatically. Vendor registration forms are a typical case: every large buyer sends its own form to each new supplier, who fills it in with the same company, bank and certification data again and again. Your ERP or supplier portal sends that data to the Carbone API as JSON, and this ODT template uses the PDF as its page background, with text fields and checkboxes placed over the blanks: the result is a filled PDF in the exact layout of the original. Here, the supplier registration form of Vallistra Group, a fictional manufacturer, filled for Brenntal Precision, a fictional machining supplier.
When the PDF has form fields (an AcroForm), use it directly as the template instead, as in Fill an existing PDF form.
In this example, you will:
- Use a non-fillable PDF as the background of the page
- Place text fields and checkboxes over the blanks of the form
- Format numbers and dates for the form
- Add a signature image
How to turn a flat PDF into a fillable template
Follow these steps to fill a flat PDF form with Carbone:
1. Use the PDF as the Page Background
In LibreOffice Writer, create an ODT document with the page size of the form, click Insert > Image..., and choose the PDF form: only its first page is used. Right-click the image, set Anchor to To Page and Wrap to In Background. In Properties... > Position and Size, set the size of the page and the position to 0 from the top left of the entire page.
The PDF stays a vector graphic in the generated document: the form prints sharp and the result weighs less than 100 KB.
Tip: for a multi-page form, split the PDF into single-page files, and anchor each one to its own page.
2. Draw Text Fields over the Blanks
Click Form > Text Box, and draw a text field inside each box of the form. Then disable Design Mode and type a Carbone tag in the field, for example {d.company.legalName} or {d.bank.iban}.
Formatters work inside the fields: {d.company.annualTurnover:formatN(0)} prints 118,400,000 with :formatN, and {d.signatory.date:formatD(DD/MM/YYYY)} prints the date in the format the form asks for with :formatD.
The certification table has three printed rows: each field targets one item of the array by its index, from {d.certifications[0].standard} to {d.certifications[2].standard}.
Tip: for a cleaner look, right-click the text field in Design Mode, open Control Properties, and in the General tab, set Border to Without frame, the font to the one of the form, and keep the field slightly inside the printed box so its lines stay visible.
3. Tick the Checkboxes
Click Form > Check Box, and place a checkbox on each printed box of the supplier type. In Control Properties, set its Name to a tag such as {d.company.supplierType.goods}: the box is ticked when the value is true, and it stays clickable in the PDF.
4. Insert the Signature Image
Insert a placeholder image in the signature box, and set its title to {d.signatory.signature}. Carbone replaces it with the signature, provided as a Base64 image in the JSON data.
To see the filled text fields in Studio, turn off the embedded PDF viewer in Preview options.
Save the ODT template, connect it to your JSON data, and let Carbone fill your PDF form automatically.
Related Examples
Check out these similar templates to learn more:
Trusted by 800+ paid customers in 40+ countries














