Test case description layout differs in html and pdf report

Ask general questions here.
LauriP
Posts: 2
Joined: Tue Mar 28, 2023 1:12 pm

Test case description layout differs in html and pdf report

Post by LauriP » Wed Mar 29, 2023 6:18 am

We use ReportToPDFModule to generate pdf versions of the test report. All looks good except the description field.
Description field in Ranorex Studio generates html formatted template.
When the template is used in PDF-generation the html formatting (new lines, bullets, ...) are ripped-off.

Is there a way to keep the same layout for pdf report as the html one?
pdf_vs_html_report.png
Ranorex version 9.1.2
Ranorex ReportToPDF Ver. 1.0.17.0
You do not have the required permissions to view the files attached to this post.

LauriP
Posts: 2
Joined: Tue Mar 28, 2023 1:12 pm

Re: Test case description layout differs in html and pdf report

Post by LauriP » Fri Mar 31, 2023 12:13 pm

Ended up writing a custom html2plaintext implementation to have at least new lines and bullet lists displayed nicely.