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 ?


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.

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.