I'm trying to use option to do a lossless compression when using transformDocument.
The following code, without lossless, works fine:
$docx->transformDocument('TestTransformDocument.docx', 'TestTransformDocument.pdf', 'libreoffice', ['debug' => true]);
But the following code, with lossless, doesn't work and returns a warning:
$docx->transformDocument('TestTransformDocument.docx', 'TestTransformDocument.pdf', 'libreoffice', ['lossless' => true, 'debug' => true]);
The warning is:
Warning: rename(./TestTransformDocument.pdf,TestTransformDocument.pdf): File not found. (code: 2) in \phpdocx-premium-9.5\classes\TransformDocAdvLibreOffice.php on line 157