|
@@ -330,7 +330,7 @@ discard block |
|
|
block discarded – undo |
|
330
|
330
|
} |
|
331
|
331
|
|
|
332
|
332
|
// clean "false positive" space groups |
|
333
|
|
- $spaceGroups = array_filter($spaceGroups, function ($spaceGroup) { |
|
|
333
|
+ $spaceGroups = array_filter($spaceGroups, function($spaceGroup) { |
|
334
|
334
|
return $spaceGroup['end'] - $spaceGroup['start'] > 1; |
|
335
|
335
|
}); |
|
336
|
336
|
|
|
@@ -364,7 +364,7 @@ discard block |
|
|
block discarded – undo |
|
364
|
364
|
$tmpPath = $this->temporaryDirectoryPath . '/' . rand(0, 10000) . '.txt'; |
|
365
|
365
|
$process = new Process('/usr/bin/pdftotext -layout ' . $filePath . ' ' . $tmpPath); |
|
366
|
366
|
$this->logger->info('Execute Pdftotext', ['file' => $filePath]); |
|
367
|
|
- $process->run(function ($type, $buffer) { |
|
|
367
|
+ $process->run(function($type, $buffer) { |
|
368
|
368
|
if (Process::ERR === $type) { |
|
369
|
369
|
echo 'ERR > ' . $buffer; |
|
370
|
370
|
} else { |
Please login to merge, or discard this patch.