Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. On form submission
  2. Config
  3. Mint upload slot
  4. Prepare upload
  5. Upload PDF
  6. Open PDF
  7. Prepare page previews
  8. Render preview
  9. Attach page preview
  10. Build mapping request
  11. Mapping vision model
  12. Validate mapping
  13. Render filled preview
  14. Attach filled preview

20 steps in total.

Similar automations