-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting docx to pdf with phpword #1027
Comments
I also got the same problem |
Try modify this line:
I solved it but dompdf create a blank file: #1030 Try with libreoffice cli: https://stackoverflow.com/questions/43008759/converting-docx-to-pdf-with-phpword |
@50l3r problem solved? please close issue |
In my case this error was because of not right path to library. |
I still get a blank file, any solutions of hints by now? |
Still having the same issue, any solutions please? |
I want to convert a docx file to pdf
I put this line in bootstrap.php
define('PHPWORD_BASE_DIR', realpath(__DIR__));
And my code looks like this:
But i got this error:
{"status":false,"error":{"classname":"PhpOffice\\PhpWord\\Exception\\Exception","message":"PDF rendering library or library path has not been defined."}}
I read info about this topic without results: http:https://stackoverflow.com/questions/25563870/making-dompdf-as-my-pdf-writer-for-phpword
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: