This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Not applying external CSS styles using convertHtml()

sowjanya_kolla wrote on 2014-06-16:

I am trying to convert HTML content to PDF. My HTML content has some styles included using absolute URL. But still the PDF is not considering styles. Its just plain HTML.

And the URL is public accessible for example:
<link rel="stylesheet" type="text/css" href="http://localhost:7001/css/styles.css" media="print" />
sowjanya_kolla wrote on 2014-06-16:
I got it now. I was using localhost URL earlier. When I changed it to Public accessible URL then it worked.