mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Fixes the creation of an archive file, even if noarchive was specified
This commit is contained in:
parent
0878a199f4
commit
b3b2519bf0
2 changed files with 37 additions and 2 deletions
|
|
@ -276,7 +276,10 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
self.log("debug", f"Calling OCRmyPDF with args: {args}")
|
||||
ocrmypdf.ocr(**args)
|
||||
|
||||
self.archive_path = archive_path
|
||||
# Only create archive file if archiving isn't being skipped
|
||||
if settings.OCR_MODE != "skip_noarchive":
|
||||
self.archive_path = archive_path
|
||||
|
||||
self.text = self.extract_text(sidecar_file, archive_path)
|
||||
|
||||
if not self.text:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue