function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hamshuhamshu 

Css Is Not working for renderAs="PDF"

Hi,

 

I am trying add page number to the pdf but css is not working.

 

 <apex:page renderas="pdf" showheader="false" applyhtmltag="false">

<head>

 <style type="text/CSS">

 @page {

 size:landscape;

 @bottom-right {

 content: "Page " counter(page) " of " counter(pages);

 }

}
</style>

</head>
</apex:page>

 

Sonam_SFDCSonam_SFDC

Hi Hamshu,

 

I think the following thread should be helpful:

http://boards.developerforce.com/t5/Visualforce-Development/Page-Breaks-and-Numbering-on-Renderas-PDF-VF-Page/td-p/359631

Try going through the code and solution mentioned..