-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Describe the Bug
I'm uploading a word document to my Laravel server using PHPWord and converting it to PDF using (PhpOffice\PhpWord\IOFactory, PhpOffice\PhpWord\Settings) but i'm getting issues with it. PHPWord is not styling the document correctly. Any idea how to solve it?
Steps to Reproduce
public function copyDocxFile(Request $request)
{
$originalFilePath = $request->url;
$fullDocxPath = 'app/public/contratos/' . basename($originalFilePath);
$converter = new OfficeConverter($fullDocxPath);
$converter->convertTo('output-file.pdf');
$converter->convertTo('output-file.html');
$pdfFilePath = storage_path('app/public/temp/'.'nuevo.pdf');
$converter = new OfficeConverter('test-file.docx', $pdfFilePath );
}
Expected Behavior
PDF Document with correct styles without breakline

Current Behavior
Breakline

Context
Please fill in your environment information:
- PHP Version: 8.0.2
- PHPWord Version: ^1.1