Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Update parsers.py
Browse files Browse the repository at this point in the history
It seems that the endpoint /convert/office does not exist. The endpoint /forms/libreoffice/convert works
  • Loading branch information
finestream authored Sep 12, 2021
1 parent d656de8 commit 7ce5d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paperless_tika/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def parse(self, document_path, mime_type, file_name=None):
def convert_to_pdf(self, document_path, file_name):
pdf_path = os.path.join(self.tempdir, "convert.pdf")
gotenberg_server = settings.PAPERLESS_TIKA_GOTENBERG_ENDPOINT
url = gotenberg_server + "/convert/office"
url = gotenberg_server + "/forms/libreoffice/convert"

self.log("info", f"Converting {document_path} to PDF as {pdf_path}")
files = {"files": (file_name or os.path.basename(document_path),
Expand Down

0 comments on commit 7ce5d06

Please sign in to comment.