Generating images
This guide explains how to create image templates and generate images using PDFMonkey.
Last updated
Was this helpful?
This guide explains how to create image templates and generate images using PDFMonkey.
Last updated
Was this helpful?
With the release of Engine v5, PDFMonkey can now generate images. In this guide we will look at the creation of image templates and documents that use them.
In order to generate images, you need to create an image Template. You can do so by selection the "Image" output type when creating your template.
Pro tip
You can also duplicate an existing template and update its output type to "Image".
Once your template is created, you can update its settings to set its dimensions and decide if you want to use a transparent background or not.
By default a webp image will be created. It's a well supported format that provides good quality at a reasonable size and supports transparent background.
There are a few options you can provide to change the image you generate. They are all provided through the Documents' meta-data:
To generate an image, you simply have to call the API the same way you do to generate a PDF, by calling the POST /api/v1/documents
endpoint (or POST /api/v1/documents/sync
for ).