Class PdfUA1Checker

  • All Implemented Interfaces:
    IValidationChecker

    public class PdfUA1Checker
    extends java.lang.Object
    implements IValidationChecker
    The class defines the requirements of the PDF/UA-1 standard.

    The specification implemented by this class is ISO 14289-1

    • Constructor Detail

      • PdfUA1Checker

        public PdfUA1Checker​(PdfDocument pdfDocument)
        Creates PdfUA1Checker instance with PDF document which will be validated against PDF/UA-1 standard.
        Parameters:
        pdfDocument - the document to validate
    • Method Detail

      • isPdfObjectReadyToFlush

        public boolean isPdfObjectReadyToFlush​(PdfObject object)
        Is PdfObject ready to flush..
        Specified by:
        isPdfObjectReadyToFlush in interface IValidationChecker
        Parameters:
        object - the pdf object to check
        Returns:
        true if the object is ready to flush, false otherwise
      • warnOnPageFlush

        public void warnOnPageFlush()
        Logs a warn on page flushing that page flushing is disabled in PDF/UA mode.
      • checkFileSpec

        protected void checkFileSpec​(PdfDictionary fileSpec)
        Verify the conformity of the file specification dictionary.
        Parameters:
        fileSpec - the PdfDictionary containing file specification to be checked
      • checkText

        private void checkText​(java.lang.String str,
                               PdfFont font)
      • checkMetadata

        protected void checkMetadata​(PdfCatalog catalog)
      • checkViewerPreferences

        private void checkViewerPreferences​(PdfCatalog catalog)
      • checkOnWritingCanvasToContent

        private void checkOnWritingCanvasToContent​(java.util.Stack<Tuple2<PdfName,​PdfDictionary>> tagStack)
      • checkCatalog

        private void checkCatalog​(PdfCatalog catalog)
      • checkStructureTreeRoot

        private void checkStructureTreeRoot​(PdfStructTreeRoot structTreeRoot)
      • checkOCProperties

        private void checkOCProperties​(PdfDictionary ocProperties)
      • checkOCGNameAndASKey

        private void checkOCGNameAndASKey​(PdfDictionary dict)
      • checkFonts

        private void checkFonts​(java.util.Collection<PdfFont> fontsInDocument)
      • checkCrypto

        private void checkCrypto​(PdfDictionary encryptionDictionary)
      • checkPdfObject

        private void checkPdfObject​(PdfObject obj)
        This method checks the requirements that must be fulfilled by a COS object in a PDF/UA document.
        Parameters:
        obj - the COS object that must be checked