Broken Image Links in PDF File / Using Gmail

The image links to both my custom logo as well as the Invoice Ninja logo graphic are broken in the PDF files (Invoices/Quotes). Custom logo is appearing on the dashboard and emails that are sent to clients, just not in any PDF files. I have a self-host install of the stable V5 on a shared server (A2 hosting) with Cpanel.

Also, any quick help on configuring to send from my gmail would be helpful.

Thanks in advance.


@david, any suggestions on the logo problem?

With the selfhost version you can use Gmail by setting the SMTP credentials. The new v5 Gmail feature is designed to enable hosted users to also send by email.

Broken Images in PDF: adding --ignore-certificate-errors to the chromium-flags might help, if app isn’t running properly certificated over https.

1 Like


if you can drop to a terminal window and run the following:

vendor/bin/snappdf convert --html "<html></html>" g.pdf it could help to see where the issue is.

First of all, thanks for a really great program. I am super excited about getting to the point where V5 is up and running (Self hosted V4 works like a charm). As expected, forums related to open source are the absolute best (and always geek intense). Thank you for your responses!

David, my hosting provider does not allow me access to Terminal, only through SSH and I am out of energy to troubleshoot at this point. Whatever I have done has not fixed the broken link problem.

The email setup (GMail and otherwise) is hit and miss and only a few of emails are going out.

So I am hoping for the ease of a Softaculous install eventually. Just so you know, they said their script team looked at V5 and there are too many “issues” and they are waiting for the Invoice Ninja team to resolve them before they add it to their repository.

Thanks again!

Hi David;

I was able to get SSH access and created the g.pdf file. It appears to be totally blank. What should I be checking for and how do I go about doing that? :slight_smile:

Sorry, it may help if we included an image… try this one to see if the image appears.

vendor/bin/snappdf convert --html "<html><img src=""></html>" g.pdf

The .pdf file generated also has a broken image link. Does that help you at all? :slight_smile:

@ben any thoughts why snap/chrome may be doing this for all images?

1 Like

Nothing comes to my mind at the moment, haven’t seen this one before. Can you resolve the websites using that machine?

You can try the following:

cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: image/png
etag: "7013841945e7db07b9541d17a05f67a22ce280f1793b8c6be10efd09738f5b90"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: 4E94:7BE7:24B939:2F9B79:6045E0F3
accept-ranges: bytes
date: Mon, 08 Mar 2021 08:32:20 GMT
via: 1.1 varnish
x-served-by: cache-vie21625-VIE
x-cache: HIT
x-cache-hits: 1
x-timer: S1615192340.123199,VS0,VE1
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
x-fastly-request-id: 259c1ec9525bb7cc797d57735ac88e7c4f03c4db
expires: Mon, 08 Mar 2021 08:37:20 GMT
source-age: 33
content-length: 12131