hello everyone, as per the subject, I have a problem with PDF generation in SuiteCRM 8.4.2, the blank page appears and no error in the suite log, but only in the apache one:
search for the file mpdf.php that it does not find because it does not exist, I know that suite8 no longer uses mpdf but tcpdf, but I wonder, since this is a non-customized module, how is it possible that there is this line in
how can I solve the problem?
To get to 8.4.2 I followed the upgrade instructions from version 7.14, the installation went quite well, except for some small problems and this PDF.
@pgr my problem concerns suitecrm 8 and does not refer to warning… it is right that it goes into error because the mpdf.php file does not exist in suitecrm 8, but I do not understand why a suitecrm file refers to a file that does not exist and goes into error with a blank page, I do not know how much modifying the display_error can solve
I read the post better… I went to admin and pdf settings, in the drop-down menu there is only the TCPDF choice (already selected), I selected it again and saved.
Now the white page no longer appears and the PDF appears, but the display is completely distorted.
In config.php:
You may have to adapt the template contents to the new PDF engine. Maybe that’s what you mean by distorted? It’s rendering differently - but it should be fixable with some effort. I don’t know how to advise in this effort, sorry, I’ve never tried it
No, I have not solved it, the problem with the suitecrm 8 PDF engine is that the content adapts to the page (in suitecrm 7 it was the opposite).
Let me explain better:
each column has a fixed width, this means that if I have a column with a very long header or content (or in any case with a width different from the pre-set one), the content of that column is divided into multiple lines and this naturally makes the document annoying and unreadable. Perhaps there are settings for the new engine to set, but I do not know them and I have not been able to find them online.
See at the bottom of my blog post “notes for SutieCRM 8 Users” I rememeber having a problem with the PDF template parser in SuiteCRM 8 and this is how I solved it.
Although I’ve only used PDF s for testing features on my add-ons, not for real business, I just say I was never able to get good results with the newer versions using tcpdf.
I got better results with mPDF, and even after a few hours trying, I couldn’t get similar results after it was deprecated…