-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Bug ReportPortable Document (PDF)Status: Waiting for feedbackQuestion has been asked, waiting for response from PR authorQuestion has been asked, waiting for response from PR author
Description
I use PHPWord with MPDF to convert Word to PDF.
This is my code:
`Settings::setPdfRendererName( Settings::PDF_RENDERER_MPDF );
Settings::setPdfRendererPath( '.' );
$phpWord = IOFactory::load( $_FILES["fileToUpload"]["tmp_name"], 'Word2007' );
$phpWord->save( 'document.pdf', 'PDF' );
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/pdf");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize('document.pdf'));
@readfile( 'document.pdf' );`
It is working, but there are no gaps between the paragraphs. The gaps are in the original Word-File but in the PDF all lines are directly below each other with no spacing.
Is there a setting for this?
Metadata
Metadata
Assignees
Labels
Bug ReportPortable Document (PDF)Status: Waiting for feedbackQuestion has been asked, waiting for response from PR authorQuestion has been asked, waiting for response from PR author