loadPdf

abstract fun loadPdf(config: PdfRandomAccessDataSourceLoadConfig, onSuccess: (PdfReaderPublication) -> Unit, onError: (ColibrioException) -> Unit)

Loads a PDF file into the ReadingSystemEngine.

When loading an PDF using this method, the PDF file is streamed in chunks from the passed RandomAccessDataSource instance. The framework will download only the requested portions of the publication, thus minimizing load times and data usage.


Loads a PDF file into the ReadingSystemEngine.

When loading an PDF using this method, the PDF file is streamed in chunks from the passed RandomAccessDataSource instance. The framework will download only the requested portions of the publication, thus minimizing load times and data usage.

Return

Either ColibrioResult.Success with the created PdfReaderPublication when successful, or ColibrioResult.Error containing the error.