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
Methods
convertFile
file by multipart to POST /convert. Only available on mobile/desktop (dart:io), not on Flutter Web.
convertBytes
data as raw body to POST /convert/raw. It works on all platforms, including Flutter Web β itβs the recommended route there.
convertFromUrl
POST /convert/from-url.
pdfIndex
POST /pdf/index.
getJob
GET /jobs/{id}.
waitForJob
GET /jobs/{id} to completed/failed or until timeout is exhausted.
ConvertResult
Sealed class with three subtypes β use is or switch exhaustive:
