+ Start a Discussion

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. 





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



@media print {

div.header {display:block;}


@media screen {

div.header {display:none;}




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