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

HTML and CSS support

med2033 wrote on 2010-09-09:
It does not appear that

<p style="font-size: 6pt">text of paragraph</p>
<p style="font-size: 16pt">text of paragraph</p>
<p style="font-size: 26pt">text of paragraph</p>
<p style="font-size: 36pt">text of paragraph</p>

is correctly interpreted. Is that correct?

Can you provide more information about how PDFcrowd supports CSS? To avoid printing massive amounts of paper, I need to be able to control the font size with some degree of accuracy. Can I achieve this with classes in a <style> section in the <head>?

Thank you.
support wrote on 2010-09-10:
We support both <header> and inline style information as well as external style sheets.

When you are saying that the style attribute is interpreted incorrectly, please what do you mean by that? The fact that the PDF font size is actually greater than specified?
med2033 wrote on 2010-09-10:
In the output file, I see no variation in size.

For the source above, here's a link to the output file:
Test Output

support wrote on 2010-09-10:
Please go to, copy your html code to the text area and convert it. The result seems correct - i.e. there are different font sizes in the PDF.

If you use the HTTP API please make sure that the src POST field is URL encoded.

Let us know if you are still having troubles with this.
med2033 wrote on 2010-09-10:
You were right -- my program was encoding '=' in the src incorrectly.

Thanks for your help, and for the tip: using the Direct Input form is a great way to debug/test things.