1.4.6 - Email PDF Template issue

Hi Everyone,

After update from 1.4.3 to 1.4.6 my email pdf templates are totally messed up.

everything is aligned to left just like the @nico411 described.

if i use download pdf from invoice menu, it looks awsome but when sent by invoice template by mail, it’s all messed up.

Can somone help me out with this?

Thanks in advance

This is a quite interesting issue as both ways to get the PDF use the same function to generate the PDF…

Could you please create a test invoice, generate both PDFs and upload them somewhere for us? Would be interesting to take a look at the files.

Hi Kovah,

Here is the screenshot of the “download pdf” pdf.

and here is the one received in the mailbox as attachment

As you can see there is a huge difference between them. I would expect both versions to have same design.

I am wondering if you can help me.

Another option for me is to rollback to 1.4.3 where it worked fine. can you roll back from 1.4.6?

Thanks in advance

Yes!

i fixed it!

in mpdf.php replace the line 1462 :
"table width=“100%” with table style=“width: 100%”

Just like @nico411 explained. I just couldn’t find the file.

@Kovah: i wonder if more people have the same issue?

1 Like

I celebrated too early,

i have 3 invoiceplanes running on my server and only on 1 of them works fine. this was a clean install of 1.4.6. where this fix worked.

other two were upgraded to 1.4.6. and the invoices in mail are still messed up.

Help anyone? :smiley: