How to resize text in a PDF Form's fillable field
The pdf/edit/add endpoint supports changing the text size in a fillable field. To do this, you'll need to include both the fontName and size parameters. Our API supports a variety of fonts, which you can view in our font list at https://developer.pdf.co/knowledgebase/general#custom-fonts.
Below is an example code snippet that demonstrates how to set the font size to 8:
POST /v1/pdf/edit/add HTTP/1.1Host: api.pdf.coContent-Type: application/jsonx-api-key: your_api_keyContent-Length: 302{ "url": "https://file_url", "fields": [ { "fieldName": "field_name", "pages": "0", "text": "This is a sample text", "size": 8, "fontName": "Arial" } ]}