XWiki - In a PDF Export tablecells the text overlaps

i had the problem that on the screen the table looks ok but when i export it as a PDF some Texts in cells will overlap.

On the Xwiki Site (here it is “full” responsive on the screensize)

On the PDF Export:
xwiki_2

Here ist the code from the table:
(% style=“margin-left:auto; margin-right:auto” %)
|=Byte|=Bit|=Name|=Bezeichnung|=Funktion
|4|2|HMI_PAR_FABRIC_SPEED_LOW_BYTE|TestTextTestText Test Test Test TestTest|TestTextTestText Test Test Test TestTest
|6|3|HMI_PAR_FABRIC_LENGTH_LOW_BYTE|TestTextTestText Test Test Test TestTest|TestTextTestText Test Test Test TestTest

I tried several things like give the table some styles: overflow:hidden;text-overflow:ellipsis;

Also tried to make a own Stylesheetclass but no luck that i can solve this problem

Can anybody here help me or give some advice?

Thank you

The installed XWiki Version is 11.10.4

The PDF export doesn’t support well CSS options for the table. We use Apache FOP underneath and it doesn’t support everything (for example different column sizes are badly supported).

The advice is to use minimal CSS for now.

See known issues at https://jira.xwiki.org/issues/?jql=project%20%3D%20XWIKI%20AND%20component%20%3D%20"Old%20Core%20-%20PDF%20export"%20and%20resolution%20%3D%20Unresolved%20

Free free to raise a new issue if your issue is not in the list.

If you really need fine grained control on the export, you could use the LaTeX extension.The main problem is that you get a zip which you then need to convert to PDF, see https://extensions.xwiki.org/xwiki/bin/view/Extension/LaTeX/Exporter/ (see also https://extensions.xwiki.org/xwiki/bin/view/Extension/LaTeX/Syntax%201.0/#HExamples for syntax details and customization options). I think that’s probably not what you want but mentioning it just in case.

One more note: you can customize the PDF export, see https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HCustomizingthePDFexportLook26Feel

There might be some options there.

If you have a PDF printer installed and use CKEditor, you might use the print option from CKEditor to print to the PDF printer … for tables that contain images, I used this path moderate success. This will also allow you to use page breaks AFAIR.