@varunKothare opened this Issue on August 30th 2022

The issue occurs when generating an email report for a long website title (as defined under Matomo >> All Website)
example: website name "A quite long name for a simple website which hopefully reproduces the issue"

Now if we try to generate an email report for this website, the websites full name is cut from the PDF:
image
see attached img.

Is there a way we can get the website title to wrap around similar way to the description which allows longer strings to be displayed.

Tested on Matomo version 4.2.1 (older version of tcpdf) and latest, occurs on both.

Related Forum ticket showing the same issue: https://forum.matomo.org/t/missing-line-breaks-in-mail-reporting-pdf/46244

@MatomoForumNotifications commented on August 30th 2022

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/missing-line-breaks-in-mail-reporting-pdf/46244/7

@bx80 commented on August 31st 2022 Contributor

This is a trivial fix, just need to change the TCPDF cell type for the report title. I've created a PR.

Also noticed long titles can cause the footer to overflow, so I've added some cropping there which seems better than having the page counter overflow off the page.

This Issue was closed on September 7th 2022
Powered by GitHub Issue Mirror