HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › PDF rendition appears to not honor CSS › Re: Re: PDF rendition appears to not honor CSS
Still more information and a question or two…
The server on which this application is running only serves web content via HTTPS. The CSS is also servered via HTTPS, however it does not require authentication. It appears this a problem for PD4ML. If we move the external CSS to another server, which is accessible via HTTP, then the PDF correctly displays.
If PD4ML cannot deal with HTTPS, then we could work around the issue by reading the CSS content and including it via the addStyle() method, however that doesn’t seem to work. Shouldn’t the following apply the indicated style?
pd4ml.addStyle("p { color:red; }", true);
For some reason it does not. Any suggestions?
thanks.