A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix file permissions
jonaswinklerc72791bd211f
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.shold mode 100644new mode 100755diff --git a/docker/docker-prepare.sh b/docker/docker-prepare.shold mode 100644new mode 100755diff --git a/docker/install_management_commands.sh b/docker/install_management_commands.shold mode 100644new mode 100755diff --git a/docker/management_script.sh b/docker/management_script.shold mode 100644new mode 100755diff --git a/install-paperless-ng.sh b/install-paperless-ng.shold mode 100644new mode 100755diff --git a/scripts/post-consumption-example.sh b/scripts/post-consumption-example.shold mode 100644new mode 100755diff --git a/test.py b/test.pydeleted file mode 100644index 18a97bacb..000000000--- a/test.py+++ /dev/null@@ -1,40 +0,0 @@-import ocrmypdf-from ocrmypdf import ocr, hookimpl-from ocrmypdf._concurrent import NullProgressBar---def get_unified_progress(self, desc, current, total):- steps = ["Scanning contents", "OCR", "PDF/A conversion"]- if desc in steps:- index = steps.index(desc)- return (index / len(steps)) + (current / total) / len(steps)- else:- return 0---class MyProgressBar:-- # __enter__, __exit__ and others removed for simplicity-- def update(self, *args, **kwargs):- pass- # i'd need to call MyOcrClass.progress() here.---@hookimpl-def get_progressbar_class(*args, **kwargs):- return MyProgressBar---class MyOcrClass:-- def progress(self, current_p, max_p):- # send progress over web sockets, *requires* self reference- pass-- def run(self):- ocrmypdf.ocr("test.pdf", "test_out.pdf", skip_text=True, jobs=1, plugins="test")---if __name__ == '__main__':- MyOcrClass().run()