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

css not working for pdf

mauliks1990 wrote on 2014-01-23:
Hi

i have html file which contains a link to css file for look and feel

when i convert html to .pdf using pdfcrowd , it shows simple pdf and without css included

how to get css also to be included to code wherever used
support wrote on 2014-01-23:
Hello,

If you use convertHtml or convertFile and your HTML uses external style sheet, you have these options:

1/ Make the style sheet accessible over Internet and use an absolute URL. For example
<img src="http://example.com/css/mystylesheet.css" />


2/ Or zip the css file together with the HTML file and send the zipped archive using the convertFile method.