Custom fields in public invoice/quote pdfs

In the public php files for invoices and quotes custom fields doesn’t work. I get an error stating that the fields can’t be located, even though they work perfectly fine in the private pdf.

Is there a fix to this?

Not at the moment but i plan to overhault the public view to just display the pdf of the invoice instead of a custom template.

Ah, cool. Thanks