So, i have different Headers and Footers for Invoice PDF Template based on countries. So instead of creating multiple Invoice templates i want to use a single standard template and header and footer image should change using the place holder. It's happening but i can't modify these image size. What i can do to achieve this?
I need single invoice template with multiple header and footer using place holder
Collapse
X
-
-
-
Then you will have to create the code in PDF template. There are checkboxes at the bottom to activate header and footer. Then two editor windows open for these two regions. There you put your template code, adjust the height according to your layout (needs a bit trial and error).
The code itself needs ifEqual condition to determine, under which condition which image will appear. The image size you can insert like in HTML with height and width.
Did you have a look here: https://docs.espocrm.com/user-guide/printing-to-pdf/
You should start to code this and on the way you may post, what you did, so we could check it.Comment
-
So I can use "If" statements to change the header and footer in the invoice template, right? However, the issue remains with the placeholder for the image field, as I am unable to correctly define the image size in the invoice template.Comment
-
Yes, you can - Printing to PDF.
In regard to the size of image, please check this Printing to PDF. There is a width and height param.Comment
-
Comment