Upload multiple documents to a package
Friday, June 3, 2016 at 06:13amHi ,
I am able to successfully upload a single document while creating a package . What all changes do I need to make to the java code to allow upload of multiple documents?
I need to simultaneously upload multiple pdf’s after inserting signatures in each document and then create a pacakge out of all these documents.
Thanks,
Sudhangi
Reply to: Upload multiple documents to a package
Friday, June 3, 2016 at 06:52amEslClient 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.newDocumentWithName("Cleaning Contract") .fromFile("C:/Users/hhaidary/Desktop/pdf/cleaning_contract.pdf") .withSignature(SignatureBuilder.signatureFor("[email protected]") .atPosition(100, 100) .onPage(0)); DocumentBuilder document2 = DocumentBuilder.newDocumentWithName("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);Reply to: Upload multiple documents to a package
Tuesday, June 7, 2016 at 01:35pmReply to: Upload multiple documents to a package
Wednesday, June 8, 2016 at 03:44am