isDocumentValid

suspend fun isDocumentValid(context: Context, source: Any, password: String? = null): Boolean

Performs a quick validation check to determine if a document is valid and readable. This is a faster operation that returns only a boolean result.

Return

True if the document is valid and readable, false otherwise.

Parameters

context

The application context.

source

The PDF document source.

password

Optional password for encrypted documents.