Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
1. I have more than 8 pages of report, but second pages is blank(empty). So i no need to display page 2. How?
2. I try to display page number in footer

$footer = array (
  'odd' => array (
    'L' => array (
            'content' => '{PAGENO}{nbpg}',
            'font-family' => 'Times',
            'font-style' => 'N',      /* blank, B, I, or BI , N Normal*/
            'font-size' => '10',      /* in pts */
    ),
    'R' => array (
            'content' => $frm_nric,
            'font-family' => 'Times',
            'font-style' => 'N',
            'font-size' => '10',
    ),
    'line' => 1,
  ),
  'even' => array ()
);


output
Page 1 footer " 1 8"   
page 2 footer " 2 7"  
..
page 4 footer " 8 1"  // But i want this type "1 8, 2 8, 3 8, ...., 8 8" (I done know, how many pages? otherwise i set default page no) I'm using new version MPDF5.4
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900