docs: fix README getting started to reflect single document conversion

This commit is contained in:
Gustavo Lima 2025-07-11 16:36:49 +01:00
parent 95e70962f1
commit 84e45d7191

View File

@ -58,15 +58,15 @@ More [detailed installation instructions](https://docling-project.github.io/docl
## Getting started
To convert individual documents with python, use `convert()`, for example:
To convert individual documents with python, use `convert_single()`, for example:
```python
from docling.document_converter import DocumentConverter
source = "https://arxiv.org/pdf/2408.09869" # document per local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown()) # output: "## Docling Technical Report[...]"
result = converter.convert_single(source)
print(result.render_as_markdown()) # output: "## Docling Technical Report[...]"
```
More [advanced usage options](https://docling-project.github.io/docling/usage/) are available in