Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

PDF Invoices has no CSS

Jonathan Hamende   ( User )

Commented 4 years ago

Dear all,

I just did a frech install of akaunting of my server.
But i did some test invoices. When I print the invoice it doesn't have the same scale as when I export to PDF. The other thing is that when exporting to PDF (same when pdf are sent by email) the PDF doesn't have any CSS.

Anyone an idea where to look to ?
Already searched around but nohing found.

Thanks in advance
Jonathan

Jonathan Hamende   ( User )

Commented 4 years ago

https://snipboard.io/yHRuQC.jpg
For the screenshot

Jonathan Hamende   ( User )

Commented 4 years ago

Additional information. Removed pdf rendering in InoiceController And juste returned $html (should be result just before pdf rendering) and there I have correct invoice layout.

So there is an issue when rendering.

Tried to change de temp folder too in config/dompdf.php but still the same issue ...

Leonardo Gomes   ( User )

Commented 4 years ago

Hi Jonathan, When you use just the Print button your Layout is ok?
Have you add something on the partials.print.head.blade.php?

I had a similar issue, but i add some lines into the partials head. After i remove everything get back to normal.

Jonathan Hamende   ( User )

Commented 4 years ago

Hi Leonardo,

Thank you for your Reply.
No it's a French Installation. I even deleted everything and installed again.
So I installed it on another server and all seems to work fine there.
So there is soomething wrong on my server.
Maybe I should upgrade to PHP7.3 as I'm still on 7.2.

Anyway, works now on another server :)

Kind regards,
Jonathan

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions