GET
/
v1-preview
/
models
/
document-conversion
/
{documentId}
/
{format}
import abbyy_document_ai
from abbyy_document_ai import DocumentAi
import os


with DocumentAi(
    api_key_auth=os.getenv("DOCUMENTAI_API_KEY_AUTH", ""),
) as document_ai:

    res = document_ai.models.document_conversion.download_converted_document(document_id="wh23anb5xjf0ntw5taase5qz", format_=abbyy_document_ai.PathParamDocumentConversionOutputFormat.HTML)

    assert res.response_stream is not None

    # Handle response
    print(res.response_stream)
This response does not have an example.

Authorizations

Authorization
string
header
required

Our API offers authentication via API keys. You can obtain an API key from https://developer.abbyy.com

Path Parameters

documentId
string
required

The id of the document

format
enum<string>
required

The format of the results.

Available options:
html,
pdf

Response

200
application/octet-stream
The file containing the OCR results

The response is of type file.