diff --git a/docling/datamodel/document.py b/docling/datamodel/document.py index a2a93aa3..e37541b7 100644 --- a/docling/datamodel/document.py +++ b/docling/datamodel/document.py @@ -352,6 +352,8 @@ def _mime_from_extension(ext): mime = FormatToMimeType[InputFormat.MD][0] elif ext in FormatToExtensions[InputFormat.JSON_DOCLING]: mime = FormatToMimeType[InputFormat.JSON_DOCLING][0] + elif ext in FormatToExtensions[InputFormat.PDF]: + mime = FormatToMimeType[InputFormat.PDF][0] return mime @staticmethod