Package com.pdftools.pdfa.validation
Class AnalysisOptions
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.pdfa.validation.AnalysisOptions
-
public class AnalysisOptions extends NativeObject
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 Constructor Description AnalysisOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Conformance
getConformance()
The PDF/A conformance to validate (Getter)boolean
getStrictMode()
Whether to enable additional, strict validation checks (Getter)void
setConformance(Conformance value)
The PDF/A conformance to validate (Setter)void
setStrictMode(boolean value)
Whether to enable additional, strict validation checks (Setter)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getConformance
public Conformance 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
public void setConformance(Conformance value)
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:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
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
-
-