Backend error handling fixes

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Christoph Auer
2024-10-11 11:18:47 +02:00
parent 304d16029a
commit 025983f07b
8 changed files with 58 additions and 29 deletions

View File

@@ -120,7 +120,7 @@ def main():
]
# buf = BytesIO(Path("./test/data/2206.01062.pdf").open("rb").read())
# docs = [DocumentStream(filename="my_doc.pdf", stream=buf)]
# docs = [DocumentStream(name="my_doc.pdf", stream=buf)]
# input = DocumentConversionInput.from_streams(docs)
doc_converter = DocumentConverter()

View File

@@ -38,6 +38,7 @@ doc_converter = DocumentConverter( # all of the below is optional, has internal
InputFormat.PDF,
# InputFormat.IMAGE,
InputFormat.DOCX,
InputFormat.HTML,
], # whitelist formats, other files are ignored.
format_options={
InputFormat.PDF: PdfFormatOption(