Remote

class Remote(val url: String, val headers: Map<String, String> = emptyMap(), val timeoutMillis: Long = DEFAULT_TIMEOUT_MILLIS) : PdfSource

PDF fetched from an HTTP(S) endpoint. Bytes are downloaded in full to a transient buffer before rendering starts — this implementation is not streaming. Apps that need progress reporting or streaming should fetch the bytes themselves and hand them in as Bytes.

Constructors

Link copied to clipboard
constructor(url: String, headers: Map<String, String> = emptyMap(), timeoutMillis: Long = DEFAULT_TIMEOUT_MILLIS)

Properties

Link copied to clipboard

extra request headers (auth tokens, etc.). Forwarded verbatim to the platform's URL loader.

Link copied to clipboard

connection + read timeout. Defaults to 30 seconds. The platform loader interprets the value with best-effort semantics — exact behaviour depends on the underlying API.

Link copied to clipboard
val url: String

full http:// or https:// URL.