Library / Documents, PDF & OCR
Documents, PDF & OCR
Fill any PDF from form JSON using Gemini vision and JustFill review
On form submission, maps JSON data to fields of an untemplated PDF with Gemini vision, re-checks the rendered pages, and calls fill_pdf only after explicit approval.
What it does
## Fill ANY PDF — reviewed AI vision This variant handles forms you have not templated. It renders every detected page and uses two separate vision passes: 1. map the supplied data to labelled fields; 2. render those exact values and independently review the filled pages. The workflow calls fill_pdf only when the second pass returns an explicit approval with no issues. A rejected or malformed review stops the run. Guide and safety notes: https://justfill.app/integrations/n8n-fill-pdf-forms?utm_source=n8n&utm_medium=referral&utm_campaign=b2b_pdf_automation_2026q3&utm_content=vision_template Setup: 1. JustFill API key → https://justfill.app/account → API keys 2. Gemini API key → https://aistudio.google.com/api-keys 3. Paste both into the Config node. Default model: gemini-3.5-flash. Expect two direct Gemini calls per run. Trade-off: automated visual review reduces silent mistakes but is still probabilistic. Use fill-pdf-workflow.json (saved template, deterministic field mapping) for recurring or high-stakes documents.
The steps
- On form submission
- Config
- Mint upload slot
- Prepare upload
- Upload PDF
- Open PDF
- Prepare page previews
- Render preview
- Attach page preview
- Build mapping request
- Mapping vision model
- Validate mapping
- Render filled preview
- Attach filled preview
20 steps in total.
Similar automations
Documents, PDF & OCRFill PDF forms from new Google Sheets rows with JustFill and Google Drive6 stepsDocuments, PDF & OCRFill PDF templates with JustFill from form submissions and review output10 stepsImage, Video & AudioFill Image Areas with FLUX Fill Editor12 stepsBuilding Blocks & UtilitiesGenerate JSON Output Formats for AI Agents with Mistral19 steps