mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
updated the README
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
cb3d23b294
commit
8df7afa550
@ -70,7 +70,9 @@ from docling.document_converter import DocumentConverter
|
|||||||
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL
|
source = "https://arxiv.org/pdf/2408.09869" # PDF path or URL
|
||||||
converter = DocumentConverter()
|
converter = DocumentConverter()
|
||||||
result = converter.convert_single(source)
|
result = converter.convert_single(source)
|
||||||
|
|
||||||
print(result.render_as_markdown()) # output: "## Docling Technical Report[...]"
|
print(result.render_as_markdown()) # output: "## Docling Technical Report[...]"
|
||||||
|
print(result.render_as_doctags()) # output: "<document><title><page_1><loc_20>..."
|
||||||
```
|
```
|
||||||
|
|
||||||
### Convert a batch of documents
|
### Convert a batch of documents
|
||||||
|
Loading…
Reference in New Issue
Block a user