server
Class info¶
🛈 DocStrings¶
convert_to_markdown
async
¶
convert_to_markdown(
source_path: str,
target_folder: str,
provider: ConverterShorthand = "mistral",
languages: list[SupportedLanguage] | None = None,
page_range: str | None = None,
) -> str
Convert a PDF to markdown and images.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source_path
|
str
|
Path to the source document (PDF, powerpoint, images, ...) |
required |
target_folder
|
str
|
Path where to save the resulting markdown and images |
required |
provider
|
ConverterShorthand
|
The provider to use for conversion. |
'mistral'
|
languages
|
list[SupportedLanguage] | None
|
Used languages in the document, if known. |
None
|
page_range
|
str | None
|
1-based page range, for example "1,4-7,9-10" |
None
|