Click or drag to resize
Pdftools logo

AnalysisResult Class

The PDF/A analysis result

Result of the validator's method Analyze(Document, AnalysisOptions) which is required for the conversion to PDF/A with Convert(AnalysisResult, Document, Stream, ConversionOptions, OutputOptions).

Note that AnalysisResult objects remain valid as long as their Document has not been closed and the analysis result has not been used in Convert(AnalysisResult, Document, Stream, ConversionOptions, OutputOptions).

Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.PdfA.ValidationAnalysisResult

Namespace: PdfTools.PdfA.Validation
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public class AnalysisResult : NativeObject

The AnalysisResult type exposes the following members.

Properties
 NameDescription
Public propertyConformance

The conformance used for analysis

The PDF/A level might differ from the Conformance. If the claimed PDF/A level of the input document is higher than Conformance, the higher level is used for Conformance.

For example, if Conformance is PDF/A-2b, but the document's claimed conformance is PDF/A-2u, the analysis checks if the document actually conforms to its claimed conformance PDF/A-2u. Because otherwise a conversion is required.

Public propertyFontCount

The number of fonts used in the document

Public propertyHasEmbeddedFiles

Whether the document contains embedded files

Public propertyIsConforming

Whether the document is conforming

Whether the document conforms to the Conformance. Note that even if this property returns a conversion might still be recommended as indicated by IsConversionRecommended.
Public propertyIsConversionRecommended

Whether the document should be converted to PDF/A

A conversion is generally recommended in the following cases:

  • If IsConforming is , i.e. if the document does not conform to the Conformance.
  • If the document is conforming, but other issues are found for which a conversion is highly recommended. For example, if certain corner cases of the specification are detected.

Note that in certain processes it might also be beneficial to convert a document if its conformance does not match the RecommendedConformance. This will actually upgrade the PDF/A level of the input document.

Public propertyIsSigned

Whether the document is digitally signed

Public propertyRecommendedConformance

The recommended conversion conformance

The optimal PDF/A conformance for the conversion (i.e. the Conformance). The recommended conformance level might be higher than the analysis conformance, if the document actually contains all data required for the higher level. It might also be lower, if the document is missing some required data.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also