Forum


Replies: 5   Views: 2962
Wierd characters in pdf output in firefox
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by davelavinsky  · 21-02-2018 - 17:05

For some odd reason, the characters (when coverted to PDF) show like this.

https://imgur.com/a/LLtcH

FireFox 58.0.2 64-bit - this not happening in Chrome or Safari.

$docx->enableCompatibilityMode();
$docx->createDocx("temp/".$ID);
$docx->transformDocument("temp/$ID.docx", "temp/$ID.pdf");

header('Content-type:application/pdf');
header('Content-Disposition:inline;filename="Plan - '.$bp->Name.'.pdf"');
readfile("temp/$ID.pdf");