I would like to convert existing docx files into pdfs on the server. Can anybody provide code examples of how I can achieve this please. My intention is to use the php exec() command to fire any command line arguments needed.
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To answer my own question, the process I went through to solve this issue was to use PHPDocx to create the dynamic docx files, I then had the host install libreoffice on the server and I used that in headless mode to create the pdfs from the docx files and finally I used PDF Merger to join the pdf files together