Skip to content

Conversation

@jiaweing
Copy link

Added support for converting URLs natively supported by Docling
https://ds4sd.github.io/docling/examples/minimal

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 [...]"

Request:

curl --request POST \ --url http://localhost:8080/documents/convert \ --header 'Content-Type: multipart/form-data' \ --header 'accept: application/json' \ --form extract_tables_as_images=true \ --form image_resolution_scale=4 \ --form url=https://jiaweing.com

Either document or url param needs to be populated.

image

@archasek
Copy link

archasek commented Feb 6, 2025

@jiaweing can you merge please?

1 similar comment
@haoruilee
Copy link

@jiaweing can you merge please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants