I have created a page like below , when i run this , styles are not applied.

<apex:page renderAs="pdf">
    <style> body { font-family: Arial Unicode MS; font-size:72px;} </style>
    <p>This is your new PDF</p>

How to apply style in pdf salesforce ?

1 Answer 1


From the Documentation:

If you use inline CSS styles, set the API version to 28.0 or later. Also set <apex:page applyBodyTag="false">, and add static, valid <head> and <body> tags to your page.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .