To add trailing zeroes for values in the PDF, you can use the following code in your HTML template:
${record.custbody?string("0.00")}
In this code, record.custbody represents the value of the decimal field on the record. The string method is then used to convert this value to a string format with two decimal places. If the original value is 0.9, it will be converted to "0.90" with the trailing zero added. If the original value already has two decimal places, such as 1.23, it will remain unchanged.
Adding trailing zeroes to decimal fields in PDF generation is a common requirement when formatting numerical values. By using the string method with a format specifier like "0.00", you can easily ensure that your decimal values are displayed correctly in your PDFs.