mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
9 lines
420 B
Python
9 lines
420 B
Python
from docling.document_converter import DocumentConverter
|
|
|
|
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL
|
|
converter = DocumentConverter()
|
|
result = converter.convert_single(source)
|
|
print(result.output.export_to_markdown()) # output: ## Docling Technical Report [...]"
|
|
# if the legacy output is needed, use this version
|
|
# print(result.render_as_markdown_v1()) # output: ## Docling Technical Report [...]"
|