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. To learn more, please check out our Security page https://pdf.co/security

Web API engines work in any programming language: PHP, Javascript, C#, .NET and ASP.NET, Java, Visual Basic, and many others.

Sign Up for Free

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.

Web API Supports Multiple Languages

Programmers can run Web API engines at the PDF.co platform using the following programming languages: C#, PHP, Javascript, .NET and ASP.NET, Java, Visual Basic, and many others.

Business Automation Platforms Integrations

If you are not a developer, you can also easily automate your PDF operations via popular business automation platforms: ZapierMakeAirtableSalesforceGoogle Apps Script, and 300+ more.

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

Enterprise Solutions

For enterprise customers, there is a Dedicated API Server that runs as a dedicated private server with dedicated private cloud storage in the hosting region of your choice.


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

Related Pages:

Related Samples: