DocumentValidationResult
Represents the result of a document validation operation.
This sealed class provides different states that a PDF document can be in when validation is performed.
Inheritors
Types
Link copied to clipboard
data class Corrupted(val reason: CorruptionReason, val errorCode: Int = -1, val errorMessage: String = "") : DocumentValidationResult
The document is corrupted and cannot be opened.
Link copied to clipboard
data class Error(val exception: Throwable, val errorMessage: String = "Unknown error occurred during validation") : DocumentValidationResult
An unknown error occurred during validation.
Link copied to clipboard
data class Invalid(val reason: InvalidityReason, val errorMessage: String = "") : DocumentValidationResult
The document source is invalid (file not found, invalid format, etc.).
Link copied to clipboard
data class PasswordProtected(val securityLevel: SecurityLevel = SecurityLevel.UNKNOWN) : DocumentValidationResult
The document is password protected and requires authentication.