Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: PDF page headers/footers definition options
    #27296

    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.

    in reply to: PDF page headers/footers definition options
    #27294

    Hai everyone, how to implement this java code below into cfscript?

    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);

Viewing 2 posts - 1 through 2 (of 2 total)