2

I have a visualforce page which i am rendering as a pdf.

<apex:pages>
        <style>
          .cke_contents {
          height: 100px !important;
             }
        </style>
</apex:pages>

problem here is when I render the page as pdf , then pdf has below code visible on top of the page

.cke_contents {
          height: 100px !important;
             }

How can I hide this style code in PDF?

3

Use the <apex:page> attribute applyBodyTag="false".

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.