Hi I am exporting data from php page to pdf when the datas exceeed the page limit the header is not available for the consecutive pages function where i call the export to pdf is 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 view page from which i export data to pdf
Name Country State TownHere I am getting the result as
page:1
Name
country
State
Town
udaya india Tamilnadu kovai
chandru srilanka columbo aaaaapage:2
vivek england gggkj gjgjkj
in the page 2 i dont get the headers name, country ,state and town