2
我試圖找出一種方法來修改PDF的頁眉,當我做出口。kartik GridView Yii2 - 如何配置PDF的輸出配置(頁眉,頁腳,標題)
現在標題說的是Yii2 Grid Export(PDF)Grid Export。
這裏是我用來嘗試修改其代碼:
'exportConfig' => [
GridView::PDF => [
'label' => 'PDF',
'filename' => 'Preceptors',
'title' => 'Preceptors',
'options' => ['title' => 'Preceptor List','author' => 'Me'],
],
GridView::CSV => [
'label' => 'CSV',
'filename' => 'Preceptors',
'options' => ['title' => 'Preceptor List'],
],
],
'export' => [
'PDF' => [
'options' => [
'title' => 'Preceptors',
'subject' => 'Preceptors',
'author' => 'NYCSPrep CIMS',
'keywords' => 'NYCSPrep, preceptors, pdf'
]
],
],
謝謝合理! – O2U