Quick overview
Fill the same existing PDF form repeatedly with new JSON records. This workflow collects a PDF and data through an n8n form, matches values to named fields, preserves the original layout, and returns a temporary download link. It is suited to recurring supplier intake and other reviewed business forms.
How it works
- Collect a PDF upload and a Data JSON object through an n8n Form Trigger.
- Request a one-time upload URL from JustFill and upload the PDF as binary.
- Open the PDF and read its field metadata.
- Match JSON keys to field names exactly after case and punctuation normalization, preserving Unicode letters. Unknown keys, ambiguous names, duplicate targets, arrays and nested objects stop the workflow before filling.
- Fill the matched fields and return the download link, output mode and warnings.
- Redirect the form response to the generated PDF.
Setup
- Import this template using Use for free. The same workflow is available as JSON on GitHub. Follow the setup guide and three-field sample. Create a JustFill account, verify your email, create an API key, and replace the Config placeholder for a private test. Keep the workflow inactive while testing; move the key to an n8n credential or environment variable before production.
- Test the form with the synthetic supplier PDF and the sample JSON from the guide. Check all three values in the returned PDF, plus
output_mode and warnings in Result.
- For your own recurring PDF, review its fields, assign meaningful names and save the layout in JustFill. Test the exact PDF with JSON keys matching those names before connecting your live source. Review a new layout whenever the source PDF changes.
Requirements
- A JustFill account, API key and available PDF-processing allowance.
- Named fields for the exact PDF; review and save your own recurring layout.
- An n8n instance with the built-in Form Trigger, HTTP Request and Code nodes. This workflow does not require the separate JustFill community node or an AI model key.
Customization
- Replace the Form Trigger with a source that supplies the PDF binary and JSON values, such as a webhook or records prepared from a spreadsheet or CRM.
- Replace the final redirect when you want n8n to store the PDF or pass it to another step.
- Retest the mapping and output after adapting the workflow.
Additional info
JustFill is built by the template author. The workflow is free to download; running it uses the JustFill account's allowance and output may be watermarked. Check the returned output mode before delivery. Download links are temporary. Keep real API keys and customer data out of shared workflow exports.