PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Re: PDF page headers/footers definition options
   PostPosted: 30 Nov 2017, 20:20 
Try to define a footer inline with <pd4ml:page.footer scope="even"> and <pd4ml:page.footer scope="odd"> tags.

See http://pd4ml.com/cookbook/pdf_header_fo ... ration.htm

If your environment is sensitive namespace declarations, use an alternative tag naming: <pd4ml-page-footer>


  Subject: Re: PDF page headers/footers definition options
   PostPosted: 04 Dec 2017, 07:59 
Code:
PD4PageMark footer = new PD4PageMark() { 
    public String getHtmlTemplate(int pageNumber) { 
        if ( pageNumber % 2 == 0 ) { 
            return "<html><body>some left aligned stuff..."; 
        } else { 
            return "<html><body>some right aligned stuff..."; 
        } 
    } 
}; 
pd4ml.setPageFooter(footer);


every body help me please, it's very urgent.
i have followed the code above for printing even condition but something wrong here. if i didn't print the first page number, the footer page didn't print . if i tried by odd condition then the footer page will print.


  Subject: Re: PDF page headers/footers definition options
   PostPosted: 04 Dec 2017, 08:30 
Please publish a PDF sample generated from your HTML code.

Please make sure you use PD4ML Pro (or a derived VOL license binary). Also try to place <pd4ml:page.break> right after opening <body> tag. Does it changes anything?



[Reply]     [ 33 posts ]  Go to page Previous  1, 2, 3, 4

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share