AC_Kolinski | Posts: 3

Append to an existing DocumentPackage object

0 votes
Can you append a DocumentPackage that has been created. Dim eslClient As New EslClient(apiKey, apiUrl) Dim fs As FileStream = File.OpenRead(strESignLiveFile) Dim superDuperPackage As DocumentPackage = PackageBuilder.NewPackageNamed(strContractFileName). _ WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings().WithInPerson()). _ WithSigner(SignerBuilder.NewSignerWithEmail(strSignerEmail). _ WithFirstName(strSignerNameFirst). _ WithLastName(strSignerNameLast). _ WithCustomId(strAccountID). _ SigningOrder(1)). _ WithSigner(SignerBuilder.NewSignerWithEmail(strSalesEmail). _ WithFirstName(strSalesNameFirst). _ WithLastName(strSalesNameLast). _ SigningOrder(2)). _ WithDocument(DocumentBuilder.NewDocumentNamed(strESignLiveFile).FromStream(fs, DocumentType.PDF). _ WithSignature(SignatureBuilder.CaptureFor(strSignerEmail). _ OnPage(0).AtPosition(65, 850). _ WithSize(260, 20)). _ WithSignature(SignatureBuilder.CaptureFor(strSalesEmail). _ OnPage(0).AtPosition(415, 850). _ WithSize(260, 20)). _ WithSignature(SignatureBuilder.CaptureFor(strSignerEmail). _ OnPage(0).AtPosition(65, 950). _ WithSize(260, 20)). _ WithSignature(SignatureBuilder.InitialsFor(strSignerEmail). _ OnPage(1).AtPosition(635, 825). _ WithSize(75, 50)). _ WithSignature(SignatureBuilder.CaptureFor(strSignerEmail). _ OnPage(2).AtPosition(60, 905). _ WithSize(260, 20)). _ WithSignature(SignatureBuilder.CaptureFor(strSalesEmail). _ OnPage(2).AtPosition(465, 905). _ WithSize(260, 20)) _ ). _ Build() 'Append to superDuperPackage here to add another signer signature (CaptureFor(strSignerEmail)) based on an additional page (OnPage(3)) being added to base contract set. 'The pdf already contains the additional page. Dim packageId As PackageId = eslClient.CreatePackage(superDuperPackage) eslClient.SendPackage(packageId)

AC_Kolinski | Posts: 3

Reply to: Append to an existing DocumentPackage object

0 votes
I got what I needed from the Building Package with Multiple Signers Dynamically posting. Dim eslClient As New EslClient(apiKey, apiUrl) Dim fs As FileStream = File.OpenRead(strESignLiveFile) Dim packBuilder As PackageBuilder = PackageBuilder.NewPackageNamed(strContractFileName). _ WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings().WithInPerson()). _ WithSigner(SignerBuilder.NewSignerWithEmail(strSignerEmail). _ WithFirstName(strSignerNameFirst). _ WithLastName(strSignerNameLast). _ WithCustomId(strAccountID). _ SigningOrder(1)). _ WithSigner(SignerBuilder.NewSignerWithEmail(strSalesEmail). _ WithFirstName(strSalesNameFirst). _ WithLastName(strSalesNameLast). _ SigningOrder(2)) Dim doc As DocumentBuilder = DocumentBuilder.NewDocumentNamed(strESignLiveFile).FromStream(fs, DocumentType.PDF) doc.WithSignature(SignatureBuilder.CaptureFor(strSignerEmail).OnPage(0).AtPosition(65, 850).WithSize(260, 20).Build()) doc.WithSignature(SignatureBuilder.CaptureFor(strSalesEmail).OnPage(0).AtPosition(415, 850).WithSize(260, 20).Build()) doc.WithSignature(SignatureBuilder.InitialsFor(strSignerEmail).OnPage(1).AtPosition(635, 825).WithSize(75, 50).Build()) If blnPerGuar = True Then doc.WithSignature(SignatureBuilder.CaptureFor(strSignerEmail).OnPage(0).AtPosition(65, 950).WithSize(260, 20).Build()) End If If intPlusPages > 0 Then For x = 2 To intPlusPages + 1 doc.WithSignature(SignatureBuilder.CaptureFor(strSignerEmail).OnPage(x).AtPosition(60, 905).WithSize(260, 20).Build()) doc.WithSignature(SignatureBuilder.CaptureFor(strSalesEmail).OnPage(x).AtPosition(465, 905).WithSize(260, 20).Build()) Next End If packBuilder.WithDocument(doc) Dim superDuperPackage As DocumentPackage = packBuilder.Build() Dim packageId As PackageId = eslClient.CreatePackage(superDuperPackage) eslClient.SendPackage(packageId) webESignLive.Navigate("https://sandbox.esignlive.com/login")

mwilliams | Posts: 957

Reply to: Append to an existing DocumentPackage object

0 votes
Hey AC_Kolinski, So, you found out what you were after from another post/example?

AC_Kolinski | Posts: 3

Reply to: Append to an existing DocumentPackage object

0 votes
Yes. Thanks.

mwilliams | Posts: 957

Reply to: Append to an existing DocumentPackage object

0 votes
Great to hear! Let us know whenever you have questions! :)

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off