Companion
object Companion
Functions
Link copied to clipboard
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
Opens the PDF at path, loading the WHOLE file into memory first (thin sugar over PdfDocument.open; there is no incremental file reader).
Link copied to clipboard
fun openOrNull(bytes: ByteArray, password: ByteArray = byteArrayOf(), allowInvalidPassword: Boolean = false): PdfDocument?
open, but null instead of an exception on a malformed or unauthenticated file.