Click or drag to resize
Pdftools logo

ValidatorAnalyze Method

Analyze a PDF document in preparation for its conversion to PDF/A.

This method validates the document's standards conformance like Validate(Document, ValidationOptions). In addition to that, certain additional checks can be performed. However, the main difference is that the analysis result can be used in Convert(AnalysisResult, Document, Stream, ConversionOptions, OutputOptions) to convert the PDF document to PDF/A.

Namespace: PdfTools.PdfA.Validation
Assembly: PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
Syntax
C#
public AnalysisResult Analyze(
	Document document,
	AnalysisOptions options = null
)

Parameters

document  Document
The document to analyze
options  AnalysisOptions  (Optional)
The options or for default analysis options

Return Value

AnalysisResult
The result of the analysis
Exceptions
ExceptionCondition
LicenseExceptionThe license check has failed.
ArgumentExceptionThe conformance of the options argument is not PDF/A.
ArgumentNullExceptionif document is .
See Also