I export data from a php page to pdf when the data exceeds the page limit, the header is not available for sequential pages function where I call export to pdf function changeDetails () {$ bType = $ this-> input-> post ('textvalue');
if($bType == "pdf") { $this->load->library('table'); $this->load->plugin('to_pdf'); $data['countrytoword'] = $this->AddEditmodel1->export(); $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); } }
This is my browse page from which I export data to pdf name Country state City
</tr>
Here I get the result as
Page 1
Name country State Town
udaya india Tamilnadu kovai
chandru srilanka columbo aaaaa
Page: 2
vivek england gggkj gjgjkj
on page 2 i don't get the headers name, country, state and city
source share