Exemple #1
0
        public PDFRect GetSignatureRect(Signature signatureSettings)
        {
            if (!signatureSettings.DisplaySignatureInDocument)
            {
                return(new PDFRect(0, 0, 0, 0));
            }

            return(new PDFRect(signatureSettings.LeftX, signatureSettings.LeftY, signatureSettings.RightX, signatureSettings.RightY));
        }
Exemple #2
0
        public int GetSignaturePageNumber(Signature signatureSettings)
        {
            switch (signatureSettings.SignaturePage)
            {
            case SignaturePage.FirstPage:
                return(1);

            case SignaturePage.LastPage:
                return(-1);

            case SignaturePage.CustomPage:
                return(signatureSettings.SignatureCustomPage);
            }

            return(-1);
        }