public function processUpload($uploadID, $sync = false, $forceCheck = false, $forceProcess = false)
{
+ Farm::setRegion($this->getRegion());
+
$this->processSync = $sync;
$this->updateProgression($uploadID, __('Nettoyage du document'), 1.3);
$this->fixPDF();
{
$path = $this->_getHightlightFilePath($page, $mode, $ignoreSeparators);
if (!$this->_checkTextFile($path)) {
- PDFTools::extractHighlightsData($this->getPDFSource(), $this->path(), $mode,$ignoreSeparators);
+ PDFTools::extractHighlightsData($this->getPDFSource(), $this->path(), $mode, $ignoreSeparators);
if (!Gzip::file_exists($path)) {
throw new \Exception('An error occured while producing file ' . $path);
}