If you need to send a larger payload, you can use a multipart/form-data POST request. When rendering images, it is good practice to send them in as URLs. Exceeding the limit will result in a 413 - Request Too Large error. Anvil will respond with the raw binary data for the filled PDF.Īt this time, an application/json POST request body is limited to a maximum size of 1 megabyte (1,048,576 bytes). POST to your new PDF template's URL with the data you want to embed in the PDF. It shows everything you need to fill the template with the API, including an example payload to quickly get started. When you finish editing fields, click over to the API Info tab. phone number, date, dollar, SSN) provide formatting for you. addresses, names, multiline fields) allow you to fill multiple fields with a single value, and many types (e.g. Picking the correct types makes filling the PDF easier compound types (e.g. Use the field editor to draw new fields, change field types and names, or modify field locations. Once uploaded, Anvil attempts to find the fields for you. On your dashboard, click the + to upload a new PDF Template. The API allows you to fill the template as many times as you need with different data each time. It defines the location of fields on PDF pages, and the type of each field (e.g. A PDF template holds the configuration for a single PDF file. Quickly see the PDF Filling endpoint in action with our PDF API Postman collection:įor more information on using the Postman workspace, see our Postman workspace guide. We provide language-specific API clients that wrap authentication and make using our API easier.įor more information on generating an API key and handling API authentication, check out the API getting started article. You can find your API key on the Organization Settings -> API Settings page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |