Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurables with long names have name cutoff in PDF reports #19693

Closed
varunKothare opened this issue Aug 30, 2022 · 4 comments · Fixed by #19694
Closed

Measurables with long names have name cutoff in PDF reports #19693

varunKothare opened this issue Aug 30, 2022 · 4 comments · Fixed by #19694
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall.
Milestone

Comments

@varunKothare
Copy link

varunKothare commented Aug 30, 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

@varunKothare varunKothare added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Aug 30, 2022
@MatomoForumNotifications

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 bx80 added Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Aug 31, 2022
@bx80 bx80 added this to the 4.12.0 milestone Aug 31, 2022
@bx80
Copy link
Contributor

bx80 commented Aug 31, 2022

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.

@PatrickHBerlin
Copy link

At the moment we try the “custom reports” plugin and there are some more problems with missing breaklines by using custom reports im mail reporting.

In this case we want to report the page Titel + page URL. The page URL is very long ;-)
Could you please check to wrap the given urls to show the whole report on one page? Maybe on landscape?

We use Matomo 4.12.0 at the moment.

Best,
Patrick
Bildschirmfoto_2022-10-19_um_11_27_29

@MatomoForumNotifications

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/11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants