context.Context and a template id. The examples use the ptr helper from the overview.
Create an image
CreateImage renders the template and returns the image bytes in Result. It takes a *CreateImageOptions, and nil uses the defaults.
The values to put into the template’s layers. Each entry names a layer with
Name. Layers you leave out keep the values from the template. Modifications lists the fields each layer accepts.Create a PDF
CreatePDF takes the modifications directly. It has no format option.
Modification fields
Modification has these fields. All of them except Name are pointers.
The struct has no
Title or Date field, so you cannot set an alert or a signature layer with it. Call the REST API for those layers.
Handle the result
Both methods return a*Response. See Handle errors.