post https://preview.threekit.com/api/pdf
This service will allow you to create PDFs from a Liquid File with JSON inputs. You can find an example of inputs here.
Response types & response encoding
Depending on the module you are using to create requests, you may need to specify the response types & response encodings. For example: if you are using Axios to create PDFs in a node server, you will need to set
responseType: 'arraybuffer'
andresponseEncoding: 'binary'
. If you use other modules, you should only need to specify the write-to-file encoding asbinary
.