docling/docs/examples/minimal.py
Christoph Auer fa5d972291 Merge remaining changes from main
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
2024-10-15 10:52:16 +02:00

11 lines
432 B
Python

from docling.document_converter import DocumentConverter
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(
result.document.export_to_markdown()
) # output: ## Docling Technical Report [...]"
# if the legacy output is needed, use this version
# print(result.legacy_output.export_to_markdown()) # output: ## Docling Technical Report [...]"