Beispiel #1
0
        private void GetPersonSignUrl(string documentId)
        {
            Person person = new Person("丁五");

            person.idcard    = "311312193706205418";
            person.mobile    = "13266668888";//SignType.SIGNWITHPIN时必填
            person.email     = "*****@*****.**";
            person.gender    = Gender.MALE;
            person.paperType = PaperType.IDCARD;

            //个人用户签署页面之不可见签名
            string personSignUnvisibleUrl = signService.SignUrl(documentId, SignType.SIGNWITHPIN, person, "https://www.baidu.com/", null);

            Console.WriteLine("个人用户签署页面之可见签名 url:{0}", personSignUnvisibleUrl);
            //个人用户签署页面之可见签名
            //生成个人印章数据,用户可自定义签名图片
            string  personSealData       = sealService.GenerateSeal(person);// 生成个人印章数据,用户可自定义签名图片
            Stamper personSignUrlStamper = new Stamper(1, 0.2f, 0.2f);

            List <Stamper> stampers = new List <Stamper>();

            stampers.Add(personSignUrlStamper);
            string personSignVisibleUrl = signService.SignUrl(documentId, SignType.SIGNWITHPIN, person, personSealData, stampers, "https://www.baidu.com/", null);

            Console.WriteLine("个人用户签署页面之可见签名 url:{0}", personSignVisibleUrl);
        }