Attached PDF in email broken

Hello,

This week I was creating some invoices and send them to my customer by email. Unfortunately the PDF attached to the e-mail was broken. It is just 1KB in size and when opening the pdf I get an error message that the file might be broken.

I haven’t changed the PhantomJs key, don’t know if that’s why the pdf is broken?

Which version are you running?

We saw a problem about 6 weeks ago with the PDFs and updated the getPDFString function in app/Models/Invoice.php to correct it.

https://github.com/invoiceninja/invoiceninja/blob/master/app/Models/Invoice.php#L745

I was running an older version, 2.8.x? I believe. I just updated to the latest version.

I didn’t notice it before, but it doesn’t happen al the time. I saw it once during testing, and this is the first time when sending to a real customer.