The PDF.co Web API can help you create fillable PDF forms. With PDF.co, you can take existing PDFs and add input fields such as input text fields, checkboxes, images, text labels, and clickable links in a PDF to create the form.

All PDF forms generated using the Web API are temporarily stored in our server for security reasons. These files are automatically deleted after 1 hour. To learn more, please check out our Security page https://pdf.co/security

Sign Up for Free

Fillable PDF Forms Integrations

PDF.co has over 300+ app integration. Kindly explore our following plugins:

Why Create Fillable PDF with Our Web API

Easy Form Creation

The Web API has an easy-to-use format to generate the PDF forms. We have ready-made templates that you can use as a reference to design and create your own. We also have a free tool called PDF Viewer that you can use to easily identify the different PDF coordinates to place your objects.

Easy To Customize

You can create your fillable PDF form by adding objects in an existing PDF or in an empty PDF document. A logo or company logo can be embedded in the PDF as well.

Supports Multiple Input Fields

The Web API supports input fields such as input text fields, checkboxes, images, text labels, and clickable links.

If you need to get specific coordinates in PDF, you can use this simplified PDF Viewer tool. It is available with PDF.co Web API and its integrations.

On-Premise API Server

Enterprises and organizations have the option to self-host the PDF.co Web API on their own premises on their own server. They can opt to get a single module or run multiple modules using the on-premise API Server. To request a trial, please email our support team.

You can host the Web API on your server, to meet your security requirements and comply with electronic Protected Health Information Requirements (ePHI), HIPAA, SOC 2, and other compliance standards We also offer access to our low-level SDKs,

Sign Up for Free

Designed for Production Environment

You can rely on our Web API to convert word to fillable PDF, without it failing when you need it most. We have tested it in a production environment numerous times, to make sure it is truly reliable. Moreover, the Web API is hosted on Amazon’s AWS servers, to deliver great computing flexibility and power.

Fillable PDF Forms Samples & Demo

In this demonstration, we will add objects in a PDF such as text fields, checkboxes, and a clickable image with an embedded URL that allows you to open a website in a browser. We will use the /v1/pdf/edit/add endpoint to add our objects. The graphic below showcases the input and output PDFs.

Fillable PDF Form Input & Output PDF

Before we start coding, let’s go over the /v1/pdf/edit/add endpoint’s parameters and their functions.

Fillable PDF Form Input & Output PDF

Endpoint

URL: https://api.pdf.co/v1/pdf/edit/add
Method: POST
Parameter Description
url required. URL to the source file
annotations[] optional. Array of text objects to be added on top of the PDF
images[] optional. Array of image objects to be added on top of PDF file.
fields[] optional. Array of values to update fillable PDF fields in input PDF.
password optional. Password of PDF file. Must be string.
async optional. Runs processing asynchronously.
encrypt optional. Enable encryption for output file.
name optional. File name for generated output.
profiles optional. Must be a String. Set custom configuration. See profiles examples here

 

cURL Code Snippet

curl --location --request POST 'https://api.pdf.co/v1/pdf/edit/add' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {{x-api-key}}' \
--data-raw '{
    "async": false,
    "encrypt": true,
    "name": "newDocument",
    "url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-edit/sample.pdf",
    "annotations":[        
       {
            "text":"sample prefilled text",
            "x": 33,
            "y": 471,
            "size": 12,
            "pages": "0-",
            "type": "TextField",
            "id": "textfield1"
        },
        {
            "x": 33,
            "y": 505,
            "size": 12,
            "pages": "0-",
            "type": "Checkbox",
            "id": "checkbox2"
        },
        {
            "x": 33,
            "y": 534,
            "size": 12,
            "pages": "0-",
            "link": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-edit/logo.png",
            "type": "CheckboxChecked",
            "id":"checkbox3"
        }          
        
    ],
    
    "images": [
        {
            "url": "bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-edit/logo.png",
            "x": 35,
            "y": 563,
            "pages": "0",
            "link": "www.pdf.co"
        }
        
    ]
}'

The Fillable PDF Forms cURL source code samples are available here.

Let’s see the Fillable PDF Form in action using our cURL code snippet.

Fillable PDF Form Demo
Fillable PDF Form Generated Output

The Fillable PDF Forms JavaScript source code samples are available here.

The Fillable PDF Forms PHP source code samples are available here.

The Fillable PDF Forms Python source code samples are available here.

The Fillable PDF Forms Java source code samples are available here.

The Fillable PDF Forms C# source code samples are available here.

Sign Up

How to Create Fillable PDFs of Over 100 Pages

You can use our Web API’s “async” mode to create large fillable PDF forms, with hundreds of pages, or 100s of single-page fillable PDF forms. Unlike the sync mode that runs on the foreground and times out within 25 seconds, the “async” mode does not time out.

To run our Web API in “async” mode, you must set “async to “true”. That will command the Web API to create a background job with a unique ID, using the “jobId” property, and return a corresponding output URL, using the “URL” property.

Related Pages:

Related Samples: