-1

データテーブルをphpページからpdfにエクスポートしていますページをpdfにエクスポートしましたが、ページ番号をpdfファイルに挿入できませんその関数の挿入方法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); }}これは私のビューページです名前国の州の町名前国の州の町

</tr>

4

1 に答える 1

2

TCPDFのようなライブラリを使用してみませんか。ページ番号が自動的に追加されます(必要な場合)。提供されている例を見てください。

于 2010-03-26T08:33:06.433 に答える