Hello, I'm trying to generate pdf from .docx, however, some style could not be set also most important table data doesnot show inside pdf. it generate blank table.
I use following code
use PhpOffice\PhpWord\IOFactory;
use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\TemplateProcessor;
$fileName = base_path('templates').'/'.'FINAL Desk.docx';
$newFilePdf = base_path('templates').'/'.'final_'.time().'.pdf';
Settings::setPdfRendererName('dompdf');
Settings::setPdfRendererPath('.');
$phpWord = IOFactory::load($fileName, 'Word2007');
$phpWord->save($newFilePdf , 'PDF');
.doc
file. Is it just impossible to do this on unix? Seems like the error is related to a microsoft library for reading the fonts within a doc file.is there any way to count the number of lines left before inserting another item
@pascaldls have u got any solutions
<Override PartName="/word/document2.xml" ContentType="application/vnd.openxmlformats-officedocument.wo rdprocessingml.document.main+xml" />