[FIX] filegallib.php: Fix missing dependency PdfToText
This is to fix the error Fatal error: Uncaught Error: Class "PdfToText" not found in /home/ocr/public_html/lib/filegals/filegallib.php:909 Stack trace: #0 /home/ocr/public_html/lib/filegals/filegallib.php(1072)
when uploading a pdf file, error detected on ocr.dev4.
Changes: The path to the vendor that includes the PdfToText dependency was wrong, so I updated it. And makes sure the code that requires the PddfToText is wrapped inside a closure, which creates a local scope where the class is only available.
Related task: https://avan.tech/item32864
Thread: https://avan.tech/item32864-Document-new-OCR-feature#threadId73802
Edited by Sam Ndabo