Class DescendantFontValidator<T extends FontContainer>

    • Method Detail

      • checkCIDSystemInfo

        protected void checkCIDSystemInfo​(COSBase sysinfo)
        Check the content of the CIDSystemInfo dictionary. A CIDSystemInfo dictionary must contain :
        • a Name - Registry
        • a Name - Ordering
        • a Integer - Supplement
        Parameters:
        sysinfo -
      • checkCIDToGIDMap

        protected abstract void checkCIDToGIDMap​(COSBase ctog)
        This method checks the CIDtoGIDMap entry of the Font dictionary. call the checkCIDToGIDMap(COSBase, boolean) with right parameters according to the instance of DescendantFontValidator
        Parameters:
        ctog -
      • checkCIDToGIDMap

        protected void checkCIDToGIDMap​(COSBase ctog,
                                        boolean mandatory)
        This method checks the CIDtoGIDMap entry of the Font dictionary. This element must be a Stream or a Name. If it is a name, it must be "Identity" otherwise, the PDF file isn't a PDF/A-1b. If the validation fails the list of errors in the FontContainer is updated. If the CIDtoGIDMap is a Stream, it is parsed as a CMap and the result is returned.
        Parameters:
        ctog -
        mandatory - true for CIDType2 , false for CIDType0