PDF.co API icon

PDF.co API

Generate PDF, extract data from PDF, split PDF, merge PDF, convert PDF. Fill PDF forms, add text and images to pdf and much more with pdf.co!

Fill a PDF Form

AI-generated

Overview

This node fills form fields in a PDF file specified by a URL. It is useful for automating the process of populating PDF forms with dynamic data, such as invoices, applications, or contracts. For example, you can fill customer information into a PDF invoice template automatically.

Use Case Examples

  1. Filling a PDF form with user data from a CRM system.
  2. Automating the generation of filled PDF contracts with client details.

Properties

Name Meaning
Authentication Selects the authentication method to use for the API (API Key or OAuth2).
PDF URL The URL of the PDF file to fill.
Fields A collection of form fields to fill in the PDF, including field name, text to insert, page ranges, font size, and font styling options.
Advanced Options Additional options such as custom output file name, callback URL for webhook, output link expiration time, and custom JSON profiles for PDF processing.

Output

JSON

  • filledPdfUrl - URL to the filled PDF file.
  • fieldsFilled - Details of the fields that were filled in the PDF.

Dependencies

  • Requires API authentication via API Key or OAuth2 to access the PDF.co service.

Troubleshooting

  • Ensure the PDF URL is accessible and publicly reachable; otherwise, the node cannot download the PDF to fill.
  • Verify that the form field names match exactly those in the PDF; incorrect names will result in fields not being filled.
  • Check that the authentication credentials (API Key or OAuth2 token) are valid and have the necessary permissions.
  • If using advanced options like webhook callback, ensure the callback URL is correctly configured and reachable.

Links

Discussion