开发者

how insert page number to pdf while exporting data from php

开发者 https://www.devze.com 2022-12-25 04:20 出处:网络
I am exporting data table from php page to pdf I got the page exported to pdf but i can\'t insert the page number into the pdf file how to insert that

I am exporting data table from php page to pdf I got the page exported to pdf but i can't insert the page number into the pdf file how to insert that function changeDetails() { $bType = $this->input->post('textvalue'); if($bType == "pdf") { $this->load->library('table'); $this->load->plugin('to_pdf'); $data['countrytoword'] = $this->AddEditmodel1->export(); //echo 'CountryList

'; $this->table->set_heading('Country','State','Town','Name'); $out = $this->table->generate($data['countrytoword']); $html = $this->load->view( 'newpdf',$data, true); pdf_create($html, $cur_date); } } and this is my view page开发者_如何学C Name Country State Town Name Country State Town

</tr>


Why don't you use a library like TCPDF, it will add page numbers automatically (if you want them that is). Just look at the examples provided.

0

精彩评论

暂无评论...
验证码 换一张
取 消