Class AbstractPdfBoxSignatureDrawer

    • Field Detail

      • document

        protected org.apache.pdfbox.pdmodel.PDDocument document
      • signatureOptions

        protected org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureOptions signatureOptions
    • Constructor Detail

      • AbstractPdfBoxSignatureDrawer

        public AbstractPdfBoxSignatureDrawer()
    • Method Detail

      • checkColorSpace

        protected void checkColorSpace​(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
                                       DSSDocument image)
                                throws IOException
        Method to check if the target image's colro space is present in the document's catalog
        Parameters:
        pdDocument - PDDocument to check color profiles in
        image - DSSDocument image
        Throws:
        IOException - in case of image reading error
      • getColorSpaceName

        protected abstract String getColorSpaceName​(DSSDocument image)
                                             throws IOException
        Returns color space name for the provided image
        Parameters:
        image - DSSDocument to get color space name for
        Returns:
        String color space name
        Throws:
        IOException - in case of image reading error