Hi I am currently using libreoffice to convert/get-text from docx (via php exec func). The conversion is a success but the output directory is up level (not the same as directory of file to be converted)
- file to convert directory = /usr/share/nginx/www/app/public/uploads
- pdf output file directory = /usr/share/nginx/www/app/public (up-level?)
- libreoffice command - "/usr/bin/libreoffice --headless --invisible -convert-to pdf —outdir " . $uploadPath . $fileName
- where in upload path = ‘public/uploads’
- where in fileName = ‘uploaded by users’
Thanks in advance!