Link Search Menu Expand Document

How to create a multiline fillable textfield?

To incorporate a multiline fillable textfield into your PDF Form, specify the value TextFieldMultiline for the type parameter. Provided below is an example API call for adding a multiline fillable text field to a PDF.

POST /v1/pdf/edit/add HTTP/1.1
Host: api.pdf.co
Content-Type: application/json
x-api-key: your_api_key
Content-Length: 517

{
    "async": false,
    "inline": true,
    "name": "newDocument",
    "url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-edit/sample.pdf",
    "annotations":[        
       {
            "text":"Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit.",
            "x": 150,
            "y": 65,
            "size": 12,
            "pages": "0",
            "type": "TextFieldMultiline",
            "id": "multilineTextField1",
            "width": 250,
            "height": 100
        }
    ]
}