Click or drag to resize
Pdf Library for .NET

PdfValidatorValidate Method

Validates pdf against standard.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public static ValidationReport Validate(
	byte[] pdf,
	string password,
	PdfConformanceStandard standard,
	ValidationOptions options = null
)

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

ValidationReport
The validation report.
Exceptions
ExceptionCondition
ArgumentNullExceptionpdf is null.
ArgumentOutOfRangeExceptionAn option is out of range, or the standard is unknown.
PdfDocumentExceptionThe password does not open the encrypted document.
Remarks
A file that cannot be read through gives a report that is not Complete and not compliant.
See Also