 |
PdfValidatorValidate Method |
Validates pdf against standard.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic static ValidationReport Validate(
byte[] pdf,
string password,
PdfConformanceStandard standard,
ValidationOptions options = null
)
Public Shared Function Validate (
pdf As Byte(),
password As String,
standard As PdfConformanceStandard,
Optional options As ValidationOptions = Nothing
) As ValidationReport
Parameters
- pdf Byte
- The document.
- password String
- Its password, when it is encrypted.
- standard PdfConformanceStandard
- The standard to validate against.
- options ValidationOptions (Optional)
- Limits; the defaults when null.
Return Value
ValidationReportThe validation report.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | pdf is null. |
| ArgumentOutOfRangeException | An option is out of range, or the standard is unknown. |
| PdfDocumentException | The password does not open the encrypted document. |
RemarksA file that cannot be read through gives a report that is not
Complete
and not compliant.
See Also