docling/examples/minimal.py
Michele Dolfi 9b323feca5 fix: align output formats
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2024-08-26 11:29:13 +02:00

7 lines
270 B
Python

from docling.document_converter import DocumentConverter
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL
converter = DocumentConverter()
doc = converter.convert_single(source)
print(doc.render_as_markdown()) # output: ## Docling Technical Report [...]"