1

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>
    <h1>Congratulations</h1>
    <p>This is your new PDF</p>
</apex:page>

How to apply style in pdf salesforce ?

4

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.