amwebexpert

A way to determine the exact position of a signature

0 votes
Is there a way to determine the exact position of a signature other then tryal and errors when we do this by code? I'm refering to atPosition(val_1, val_2) lines in the code snippet below...

		// Build the DocumentPackage object
		DocumentPackage documentPackage = newPackageNamed("Premilimary contract - 3345") //
				.withSigner(newSignerWithEmail("[email protected]") //
						.withFirstName("André") //
						.withLastName("Masson")) //
				.withSigner(newSignerWithEmail("[email protected]") //
						.withFirstName("Johanne") //
						.withLastName("Chamberland")) //
				.withDocument(newDocumentWithName("Premilimary contract - 3345") //
						.fromFile("C:/temp/TestContract.pdf") //
						.withSignature(signatureFor("[email protected]") //
								.onPage(0) //
								.atPosition(100, 850))
						.withSignature(signatureFor("[email protected]") //
								.onPage(0) //
								.atPosition(100, 950)))
				.build();

Approved Answer

Reply to: A way to determine the exact position of a signature

0 votes
There are a couple different ways that you can make this easier on yourself. One would be to use field extraction. In this method, you'd name your fields a certain way and enable extraction to automatically place signature and/or text field locations based on the underlying documents form fields. See this blog for more information: https://www.silanis.com/blog/e-signlive-how-to-document-extraction-net-sdk/ The other way would be to use text extraction. In this method, you'd specify a certain text by where you're wanting to place your signature block that e-SignLive could use to place a relative signature block. For example, you might have a text "Applicant Signature" just below where you'd like the signature block to be. You'd reference this text as your text anchor and define the relative position for your signature block, in the code. See the documentation for more info: http://docs.e-signlive.com/doku.php?id=esl:e-signlive_guide-working_with_documents#text_anchor_extraction Hopefully this is helpful

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


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