Page 1 of 1

Adjust table cell width automatically

Posted: Tue Nov 19, 2019 12:54 pm
by catherine
Hey,
I have a question related to the PDF output.

When I generate a PDF manual, some contents would bleed out the cell.
For now, I have to manually check all the tables, and adjust the width of some cells, so that the contents would be correctly displayed in the PDF file.

Is there any way I can change the customized css file for PDF file to adjust the table cell width automatically ?

Re: Adjust table cell width automatically

Posted: Tue Nov 19, 2019 1:10 pm
by Costin
Hello,

Have you tried enabling hyphenation inside tables?

For more details on how to prevent text bleeding out of table cells and how to set automatic table layout, see this section from the User-Guide.

Regards,
Costin

Re: Adjust table cell width automatically

Posted: Wed Nov 20, 2019 10:49 am
by catherine
Thanks, Costin.

Actually I tried to enable hyphenation inside tables, but didn't work.
I will check again.

Re: Adjust table cell width automatically

Posted: Wed Nov 20, 2019 11:07 am
by Costin
See also the instructions to set automatic table layout from the same page.

In case you still won't manage to fix the bleeding issue, through CSS, then you could send us (on support@oxygenxml.com) a sample DITA Map in a minimal form (with one topic that contains a table with bleeding text), so we could take a look and see if we could find a solution for this.

Regards,
Costin