HTML to PDF/RTF Java converter and tools › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Table rendering issue with cells containing empty <p> tags › Re: Re: Table rendering issue with cells containing empty tags
May 28, 2015 at 18:53
#29736
For the given document type a possible solution is to define an extra style to shrink a table and to ensure, it makes no undesired line-wraps:
[language=css:2estpj1l]table { width: 200 }
td { white-space: nowrap; }[/language:2estpj1l]
The style can be passed via pd4ml.addStyle(css, true) API call.
See http://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#addStyle(java.lang.String,%20boolean)