Answer the question
In order to leave comments, you need to log in
Why does mPdf output pdf crookedly?
Hello. I edit xls file using PHPSpreadsheet and then I want to save it to pdf using mPdf.
Here is the code:
$spreadsheet = IOFactory::load(public_path('form_3.XLS'));
$worksheet = $spreadsheet->getActiveSheet()->setCellValue('N16', $data);
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
$writer->writeAllSheets();
$writer->save("file.pdf");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question