PdfSource

sealed interface PdfSource : AutoCloseable

A synchronously readable PDF input owned by PdfViewer.open.

Ownership transfers as soon as open() is called. The source is closed after an open failure, cancellation, or closure of the resulting document.

Inheritors

Types

Link copied to clipboard
class Bytes(val data: ByteArray) : PdfSource

A memory-backed PDF source.

Link copied to clipboard

A synchronously readable random-access source.

Functions

Link copied to clipboard
expect abstract fun close()