纸张边距
函数原型
setMargins(double $left, double $right, double $top, double $bottom): self
示例
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('tutorial.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->setPaper(\Vtiful\Kernel\Excel::PAPER_A3)
->setLandscape()
->setMargins(1, 1, 2, 2)
->output();
Last updated