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
lostintheforcelostintheforce 

Question about turning a page into pdf

Hi, I was wondering if you can create a pdf from a visual for page that will have the header on each page you print out.  So if I have a visualforce page, I want the header on the top of each page I print out. 

 

 

Thanks

Pradeep_NavatarPradeep_Navatar

Tryout this code it would help you to get workaround on Header of page.

 

<STYLE>

@media print {

div.header {display:block;}

}

@media screen {

div.header {display:none;}

}

</STYLE>

 

For more information you can visit at this link: http://stackoverflow.com/questions/2067380/add-header-when-page-breaks-when-using-page-break-inside-avoid-wth-css-or-javascript