Package com.itextpdf.pdfoptimizer.util
Class PdfAConformanceChecker
java.lang.Object
com.itextpdf.pdfoptimizer.util.PdfAConformanceChecker
Class to check PDF-A conformance level for documents.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isPdfA1Document
(com.itextpdf.kernel.pdf.PdfDocument document) Check is specific document has PDF-A1 conformance.static boolean
isPdfADocument
(com.itextpdf.kernel.pdf.PdfDocument document) Check is specific document has any PDF-A conformance.
-
Method Details
-
isPdfADocument
public static boolean isPdfADocument(com.itextpdf.kernel.pdf.PdfDocument document) Check is specific document has any PDF-A conformance.- Parameters:
-
document
- to check it's PDF-A conformance - Returns:
- true if it's PDF-A document, otherwise false.
-
isPdfA1Document
public static boolean isPdfA1Document(com.itextpdf.kernel.pdf.PdfDocument document) Check is specific document has PDF-A1 conformance.- Parameters:
-
document
- to check it's PDF-A1 conformance - Returns:
- true if it's PDF-A1 document, otherwise false.
-