Feature: Upgrade Gotenberg to v8 (#7094)

This commit is contained in:
Trenton H
2024-06-26 19:37:50 -07:00
committed by GitHub
parent dc8e73c0e2
commit d92659a63d
8 changed files with 45 additions and 19 deletions

View File

@@ -102,7 +102,10 @@ class TikaDocumentParser(DocumentParser):
}:
route.pdf_format(PdfAFormat.A2b)
elif settings.OCR_OUTPUT_TYPE == OutputTypeChoices.PDF_A1:
route.pdf_format(PdfAFormat.A1a)
self.log.warn(
"Gotenberg does not support PDF/A-1a, choosing PDF/A-2b instead",
)
route.pdf_format(PdfAFormat.A2b)
elif settings.OCR_OUTPUT_TYPE == OutputTypeChoices.PDF_A3:
route.pdf_format(PdfAFormat.A3b)