Package com.pdftools.pdfa.validation
Class AnalysisOptions
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.pdfa.validation.AnalysisOptions
The PDF/A analysis options
Options for the analysis of documents using the validator's methodValidator.analyze(com.pdftools.pdf.Document) in preparation for the document's conversion to PDF/A.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe PDF/A conformance to validate (Getter)booleanWhether to enable additional, strict validation checks (Getter)voidsetConformance(Conformance value) The PDF/A conformance to validate (Setter)voidsetStrictMode(boolean value) Whether to enable additional, strict validation checks (Setter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
AnalysisOptions
public AnalysisOptions()
-
-
Method Details
-
getConformance
The PDF/A conformance to validate (Getter)
It is recommended to use:
-
The input document's claimed conformance
pdftools.pdf.Document.getConformance, if it is an acceptable conversion conformance. No conversion is needed, if the analysis result's propertyAnalysisResult.getIsConversionRecommended()isfalse. - PDF/A-2b for the conversion to PDF/A-2. This is the recommended value for all other input documents.
- PDF/A-3b for the conversion to PDF/A-3
- PDF/A-1b for the conversion to PDF/A-1
Default: "PDF/A-2b"
-
The input document's claimed conformance
-
setConformance
The PDF/A conformance to validate (Setter)
It is recommended to use:
-
The input document's claimed conformance
pdftools.pdf.Document.getConformance, if it is an acceptable conversion conformance. No conversion is needed, if the analysis result's propertyAnalysisResult.getIsConversionRecommended()isfalse. - PDF/A-2b for the conversion to PDF/A-2. This is the recommended value for all other input documents.
- PDF/A-3b for the conversion to PDF/A-3
- PDF/A-1b for the conversion to PDF/A-1
Default: "PDF/A-2b"
- Throws:
IllegalArgumentException- ifvalueisnull
-
The input document's claimed conformance
-
getStrictMode
public boolean getStrictMode()Whether to enable additional, strict validation checks (Getter)
Whether to check for potential issues that are corner cases of the PDF/A ISO Standard in which a conversion is strongly advised. Also see the documentation of
AnalysisResult.getIsConversionRecommended().Default:
true -
setStrictMode
public void setStrictMode(boolean value) Whether to enable additional, strict validation checks (Setter)
Whether to check for potential issues that are corner cases of the PDF/A ISO Standard in which a conversion is strongly advised. Also see the documentation of
AnalysisResult.getIsConversionRecommended().Default:
true
-