Shailendra1801 | Posts: 18 Send multiple document with single package Thursday, March 22, 2018 at 05:19am 0 votes Hi, How to send multiple document with single package Id ? Thanks in Adv. March 22 Created January 21 Last Updated 6 years ago Last Reply 3 Replies 19 Views 2 Users 0 Likes 0 Links harishaidary | Posts: 1812 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:20am 1 votes Hi there, Are you using the Java/.NET SDK or the REST API? Log in or register to post comments Shailendra1801 | Posts: 18 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:23am 0 votes I am using .Net SDK Log in or register to post comments harishaidary | Posts: 1812 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:32am 2 votes Here's an example that I've posted in a previous post (https://community.onespan.com/forum/upload-multiple-documents-package): EslClient client = new EslClient(API_KEY, API_URL); PackageBuilder packageToBuild = PackageBuilder.NewPackageNamed("Multiple Documents Example"); SignerBuilder signer1 = SignerBuilder.NewSignerWithEmail("[email protected]") .WithFirstName("Haris") .WithLastName("Haidary") .WithCustomId("Signer"); DocumentBuilder document1 = DocumentBuilder.NewDocumentNamed("Cleaning Contract") .FromFile("C:/Users/hhaidary/Desktop/pdf/cleaning_contract.pdf") .WithSignature(SignatureBuilder.SignatureFor("[email protected]") .AtPosition(100, 100) .OnPage(0)); DocumentBuilder document2 = DocumentBuilder.NewDocumentNamed("Sample Contract") .FromFile("C:/Users/hhaidary/Desktop/pdf/doc1.pdf") .WithSignature(SignatureBuilder.SignatureFor("[email protected]") .AtPosition(100, 100) .OnPage(0)); DocumentPackage packageToSend = packageToBuild.WithSigner(signer1).WithDocument(document1).WithDocument(document2).Build(); PackageId packageId = client.CreateAndSendPackage(packageToSend); Hope this helps. Log in or register to post comments
harishaidary | Posts: 1812 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:20am 1 votes Hi there, Are you using the Java/.NET SDK or the REST API? Log in or register to post comments
Shailendra1801 | Posts: 18 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:23am 0 votes I am using .Net SDK Log in or register to post comments
harishaidary | Posts: 1812 Reply to: Send multiple document with single package Thursday, March 22, 2018 at 05:32am 2 votes Here's an example that I've posted in a previous post (https://community.onespan.com/forum/upload-multiple-documents-package): EslClient client = new EslClient(API_KEY, API_URL); PackageBuilder packageToBuild = PackageBuilder.NewPackageNamed("Multiple Documents Example"); SignerBuilder signer1 = SignerBuilder.NewSignerWithEmail("[email protected]") .WithFirstName("Haris") .WithLastName("Haidary") .WithCustomId("Signer"); DocumentBuilder document1 = DocumentBuilder.NewDocumentNamed("Cleaning Contract") .FromFile("C:/Users/hhaidary/Desktop/pdf/cleaning_contract.pdf") .WithSignature(SignatureBuilder.SignatureFor("[email protected]") .AtPosition(100, 100) .OnPage(0)); DocumentBuilder document2 = DocumentBuilder.NewDocumentNamed("Sample Contract") .FromFile("C:/Users/hhaidary/Desktop/pdf/doc1.pdf") .WithSignature(SignatureBuilder.SignatureFor("[email protected]") .AtPosition(100, 100) .OnPage(0)); DocumentPackage packageToSend = packageToBuild.WithSigner(signer1).WithDocument(document1).WithDocument(document2).Build(); PackageId packageId = client.CreateAndSendPackage(packageToSend); Hope this helps. Log in or register to post comments
Reply to: Send multiple document with single package
Thursday, March 22, 2018 at 05:20amReply to: Send multiple document with single package
Thursday, March 22, 2018 at 05:23amReply to: Send multiple document with single package
Thursday, March 22, 2018 at 05:32amHere's an example that I've posted in a previous post (https://community.onespan.com/forum/upload-multiple-documents-package):
Hope this helps.