__construct() __construct(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet) Create a new PDF Writer instance. Parameters \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet Spreadsheet object
setFont() setFont(string $fontName) : $this Set font. Examples: 'arialunicid0-chinese-simplified' 'arialunicid0-chinese-traditional' 'arialunicid0-korean' 'arialunicid0-japanese'. Parameters string $fontName Returns $this
setPaperSize() setPaperSize(string $pValue) : self Set Paper Size. Parameters string $pValue Paper size see PageSetup::PAPERSIZE_* Returns self
setOrientation() setOrientation(string $pValue) : self Set Orientation. Parameters string $pValue Page orientation see PageSetup::ORIENTATION_* Returns self
setTempDir() setTempDir(string $pValue) : self Set temporary storage directory. Parameters string $pValue Temporary storage directory Returns self
save() save(string $pFilename) Save Spreadsheet to file. Parameters string $pFilename Name of the file to save as
prepareForSave() prepareForSave(string $pFilename) : resource Save Spreadsheet to PDF file, pre-save. Parameters string $pFilename Name of the file to save as Returns resource
createExternalWriterInstance() createExternalWriterInstance(array $config) : \Mpdf\Mpdf Gets the implementation of external PDF library that should be used. Parameters array $config Configuration array Returns \Mpdf\Mpdf — implementation
inchesToMm() inchesToMm(float $inches) : float Convert inches to mm. Parameters float $inches Returns float