php - Dompdf footer not set..? -


here using dompdf generating pdf header,body,footer. when try add footer ,it's not attaching.

it come body code, want set footer @ bottom.

can figure-out wrong below code ?

code :

    global $_dompdf_show_warnings;     global $_dompdf_debug;     global $_dompdf_debug_types;     global $_dompdf_warnings;     $_dompdf_show_warnings = false;      require_once(realpath(apppath."third_party/dompdf")."/dompdf_config.inc.php");      spl_autoload_register('dompdf_autoload');      $dompdf = new dompdf();     $dompdf->set_paper("letter", "portrait");      $html = '<html>                 <head>                     <title>                     </title>                     </head>  `enter code here`                  <body style="margin:0; background-color:#ff9900; color:#ffffff;">                         <div>                             <div style="margin:15px;">                                 <div>                                     <span style="font-size:25px; font-weight:600;">                                         hi, john                                     </span>                                 </div>                                 <div>                                     <span>                                         account statement here.                                     </span>                                 </div>                                  <div style="margin-top:15px; border: 2px solid;border-radius:5px; padding:10px; position:absolute; diplay:block;">                                     <div style="float:left;">left</div>                                     <div style="float:right;">right</div>                                 </div>                             </div>                         </div>                         <div style="background-color:#ffffff; color:#ff9900; position:fixed; bottom:0;width:100%;padding:10px;">                             <div>                                 <span>                                     <b><i>this system generated statement.</i></b>                                 </span>                             </div>                             <div>                                 <span>                                    <b><i> if have queries, email support@xyz.com.</i></b>                                 </span>                             </div>                         </div>                     </body>                 </html>';           $dompdf->load_html($html);         $dompdf->render();          $dompdf->stream("dompdf_out.pdf", array("attachment" => false)); 

in dompdf (up , including version 0.7.0) elements (generally speaking) rendered starting page on first appear. because of you'll want put header/footer content @ top of document.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -