Custom invoice designs do not include embedded images/documents

Just created a custom invoice design to fix an issue with the header. Realized that it doesn’t include embedded images/documents, despite checking and unchecking that option in the settings. Reverted back to the “Business” design and the embedded images were working again.

Had a look at invoiceninja/resources/views/pdf-designs at v5-stable · invoiceninja/invoiceninja · GitHub and saw that they are included between the header and footer in a $entity_images tag. Didn’t see that tag in the ‘Variables’ tab of the custom invoice designer. Just manually added it above the footer and it seems to be working.

Didn’t look in to how custom invoice designs are generated so I don’t know the fix. But it should be included when creating a custom design from an existing template.

Hi,

I’m not sure, are you saying when cloning a design to create a custom design some of the content isn’t included?

Yes. If you create an invoice then add images to it they will show at the bottom of the PDF. This works on all the invoice designs.

However if you create a custom design, and change nothing, it will not show those images. I tried this using “business” and “clean” as templates when creating two different custom designs.

Sounds like it may be a bug. We track issues on GitHub but since you’re on the hosted platform feel free to send an email to [email protected] to report it.