Activity Forums Salesforce® Discussions How to enable internal stylesheet for Salesforce Visualforce PDF page?

  • Manpreet

    Member
    February 15, 2018 at 4:09 pm

    Hi Pranav,

    You can add tag in inside the apex pages applyHtmlTag=false.

    Something like this :
    <apex:page applyHtmlTag="false" >

    Thanks.

  • Avnish Yadav

    Member
    September 29, 2018 at 11:55 pm

    Hey guys just to make a note, starting from API 28 to get this working please add "applyHtmlTag=false" to your code:
    view source
    print?

    <apex:page standardController="YourController" showHeader="false" applyHtmlTag="false"renderAs="pdf">

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos