Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Replies
Topics Started
Preferences
Topic Started
Topics |
---|
Hi,
I am translating SDK call to REST API.
Attached is the code we use SDK call.
|
Replies Created
Reply to: Create Package with options
Wednesday, December 2, 2015 at 07:14amI uploaded a txt file, but it said the file type is not permitted.
So I paste the code here
DocumentPackage documentPackage = newPackageNamed(dealId).withLanguage(getLanguage())
.withSigner(newSignerWithEmail(email).withCustomId(getSignerId())
.withFirstName(firstName)
.withLastName(lastName))
.withDocument(newDocumentWithName(dealId).fromStream(new ByteArrayInputStream(documentPDF), DocumentType.PDF)// .fromFile("c:\\document.pdf")
.withId(dealId) // use Deal Id as Document Id
.withSignature(SignatureBuilder.captureFor(email)
.withSize(180, 40)
//
// Convert from inches to pixels
// = inch * 72 * 1.3
//
.atPosition(210, 920)
.onPage(0)
.withField(FieldBuilder.signatureDate()
.onPage(0)
.withSize(176.69, 26.312)
.atPosition(530, 934))))
.withSettings(DocumentPackageSettingsBuilder.newDocumentPackageSettings()
.withoutLanguageDropDown()
.withoutWatermark()
.withoutDialogOnComplete()
.withoutDocumentToolbarDownloadButton()
.withoutCaptureText()
.withCeremonyLayoutSettings(CeremonyLayoutSettingsBuilder.newCeremonyLayoutSettings()
.withIFrame()
.withoutTitle()
.withoutProgressBar()
.withoutSessionBar()
.withoutBreadCrumbs()
.withoutGlobalConfirmButton()
.withoutGlobalDownloadButton()
.withoutGlobalNavigation()))
.build();
//
// Issue the request to the e-SignLive server to create the DocumentPackage
//
PackageId pkgId = null;
try
{
pkgId = eslClient.createPackage(documentPackage);
}
catch (EslException e)
{
}
packageId = pkgId.toString();
//
// Send the package to be signed by the participants
//
try
{
eslClient.sendPackage(pkgId);
}
catch (EslException e)
{
}
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
Hi,
I am translating SDK call to REST API.
Attached is the code we use SDK call.
|
2 | 8 years 4 months ago | 49 |
Subscriptions Release Notes
This user is not subscribed to any release notes.