HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › CSS Styles aren’t applied, can someone help me? › Re: Re: CSS Styles aren’t applied, can someone help me?
June 11, 2010 at 10:18
#28058
> pd4ml.render(new StringReader(html), os);
If your CSS stylesheet is referenced from the HTML as a standalone file, probably render() method with base URL should help.
In any case pd4ml.enableDebugInfo() should help to detect external resource loading problems.
> pd4ml.addStyle(styles)
The method is available only in PD4ML Pro (and derived volume licenses). Do you use Std or Pro?