Generating a PDF File with Images via Make
FillFaster Support
Last Update 4 dagen geleden
- Access FillFaster’s App
- Open the FillFaster app on Make.
- Create or Select a PDF Template
- If you already have a PDF template, select it. Otherwise, create a new one.
- Ensure that the template includes placeholders for images (e.g. image fields).
- Prepare Your Image
- Convert your image to a base64 string. The format should be:
data:image/[IMAGE FORMAT];base64,[BASE64 OF THE IMAGE] - For example:
4. Generate the PDF
- Use FillFaster’s module to generate the PDF.
- The image will appear in the specified location on the PDF template.
Remember that image fields support formats like PNG and JPEG.
* If you have the image in Make's data (buffer) format, you can use the built-in string function base64 to convert it inline, as shown in the following image:
data:image/png;base64,base64(data)