Hi,
We had two of our users submit a request for a PDF document to be created a few seconds apart. This was not intentional; just a timing issue. The result was that the first requested PDF was created, but the second requested PDF was not created.
The only errors in the logs were associated to the PDF file not being found.
FAIL::2::185::.\phpdocx\classes\TransformDocAdvLibreOffice.php::rename(.\temp\Account 987654321 Update - 1714522260.pdf,.\temp\Account 987654321 Update - 1714522260.pdf): The system cannot find the file specified (code: 2)
Is this a known issue/limitation, or did we just run into an annomoly?
The order things transpired is:
- 1st requested Word document was completed.
- Call to the 1st requested PDF started.
- 2nd requeted Word document was completed.
- Call to the 2nd requested PDF started.
- 1st requested PDF was completed. (this took about 8 seconds)
- 2nd requested PDF was never created.
We are running PhpDocx 14.5 Advanced on Windows/IIS/PHP 8, and using LibreOffice as the executable to create the PDFs.
Our process uses a Word template. Our code creates a Word document using the Word tempalte, then creates a PDF using the Word document.
$docx->createDocx($WordFileName);
$docx->transformDocument($WordFileName, $PDFFileName);