Skip to main content

Referencia

MarkpdfClient

String
required
Tu API key.
String
default:"https://api.markpdf.tech"
URL base of API.
Duration
default:"Duration(minutes: 5)"
Timeout by request.
int
default:"2"
Automatic retries with exponential backoff in 429 and 5xx.

ConvertOptions

Immutable class with named params. They are all optional and use the same defaults as API.

Enums

See Modes and Formats for the meaning of each value.

Methods

convertFile

Upload file by multipart to POST /convert. Only available on mobile/desktop (dart:io), not on Flutter Web.

convertBytes

Send data as raw body to POST /convert/raw. It works on all platforms, including Flutter Web β€” it’s the recommended route there.

convertFromUrl

Llama a POST /convert/from-url.

pdfIndex

Llama a POST /pdf/index.

getJob

Consulta manualmente GET /jobs/{id}.

waitForJob

Polls from GET /jobs/{id} to completed/failed or until timeout is exhausted.

ConvertResult

Sealed class with three subtypes β€” use is or switch exhaustive:

JsonResult

PdfSpine

Job