Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
Hi, I am using document extraction with field to identify the signature position for a signer.

Replies Created

Reply to: Issue with adding multiple signatures for a single signer

0 votes
public static void main(String[] args) {
		final String API_KEY = "your_api_key";
		final String API_URL = "https://sandbox.esignlive.com/api";

		EslClient eslClient = new EslClient(API_KEY, API_URL);

		 PackageBuilder packageBuilder = PackageBuilder.newPackageNamed("Example Package " + System.currentTimeMillis())
				.withSigner(SignerBuilder.newSignerWithEmail("[email protected]").withFirstName("John")
						.withLastName("Smith")
						);
		
		Document document = DocumentBuilder.newDocumentWithName("document 1")
		.fromFile("your_file_path")
		.enableExtraction()
		.build();
		
		List signatureList = new ArrayList();
		signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p1")
				.withPositionExtracted().build());
		signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p2")
				.withPositionExtracted().build());
		signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p3")
				.withPositionExtracted().build());
		signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p4")
				.withPositionExtracted().build());
		signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p5")
				.withPositionExtracted().build());
                signatureList.add(SignatureBuilder.signatureFor("[email protected]").withName("ExecutedBy_p7")
				.withPositionExtracted().build());
		
		document.addSignatures(signatureList);
		packageBuilder.withDocument(document);

		PackageId createPackageOneStep = eslClient.createPackage(packageBuilder.build());
		System.out.println(createPackageOneStep);

	}
If you execute this, you will see one signature field at the end

Reply to: Issue with adding multiple signatures for a single signer

0 votes
Hi Duo, Thank you. correct if i understood it wrong. You are suggesting to change the pdf field type from signature to text? or are u suggesting to use text anchor tags? I have not received the pdf file. Thanks Mouli

Subscriptions

Topics Replies Freshness Views Users
Hi, I am using document extraction with field to identify the signature position for a signer.
11 4 years 10 months ago 85
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.