Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Preferences
Replies
Topics Started
Topic Started
This user has not created any forum posts.
Replies Created
Reply to: Text Anchor to Identify Signature Field
Tuesday, November 22, 2016 at 10:34amHaris,
Ah, I figured it was something simple like that. I just assumed it went in buildPackage since the JSON string had it with "Roles". I will switch that around in the morning, hopefully with success. Thank you for your help.
David Ilgen
Reply to: Text Anchor to Identify Signature Field
Wednesday, November 23, 2016 at 07:44amHey Haris,
I moved the code into "buildDocument", but am still unable to make a successful call. Do I need the "documents" and "approvals" arrays? I tried both with and without, but still nothing.
//Upload document public function buildDocument($packageId) { $build = array( "documents" => array( array( "approvals" => array( array( "fields" => array( array( "type" => "SIGNAUTRE", "extract" => false, "extractAnchor" => array( "text" => "APPLICANTS SIGNATURE", "index" => 0, "width" => 150, "height" => 40, "anchorPoint" => "TOPLEFT", "characterIndex" => 0, "leftOffset" => 0, "topOffset" => -50, ), "left" => 0, "subtype" => "FULLNAME", "top" => 0, ), array( "value" => null, "type" => "INPUT", "binding" => "{approval.signed}", "extract" => false, "extractAnchor" => array( "text" => "DATE", "index" => 1, "width" => 75, "height" => 40, "anchorPoint" => "TOPRIGHT", "characterIndex" => 0, "leftOffset" => 10, "topOffset" => -30, ), "left" => 0, "subtype" => "LABEL", "top" => 0, ), ), "role" => "Signer1", ), array( "fields" => array( array( "type" => "SIGNAUTRE", "extract" => false, "extractAnchor" => array( "text" => "APPLICANTS SIGNATURE", "index" => 1, "width" => 150, "height" => 40, "anchorPoint" => "TOPLEFT", "characterIndex" => 0, "leftOffset" => 0, "topOffset" => -50, ), "left" => 0, "subtype" => "FULLNAME", "top" => 0, ), ), "role" => "Signer2", ), array( "fields" => array( array( "type" => "SIGNAUTRE", "extract" => false, "extractAnchor" => array( "text" => "AGENT SIGNATURE", "index" => 0, "width" => 150, "height" => 40, "anchorPoint" => "TOPLEFT", "characterIndex" => 0, "leftOffset" => 0, "topOffset" => -50, ), "left" => 0, "subtype" => "FULLNAME", "top" => 0, ), array( "value" => null, "type" => "INPUT", "binding" => "{approval.signed}", "extract" => false, "extractAnchor" => array( "text" => "DATE", "index" => 0, "width" => 75, "height" => 40, "anchorPoint" => "TOPRIGHT", "characterIndex" => 0, "leftOffset" => 10, "topOffset" => -30, ), "left" => 0, "subtype" => "LABEL", "top" => 0, ), ), "role" => "Sender1", ), ), ), ), 'extract' => true, 'name' => 'Sample Contract', 'id' => 'contract' ); $doc = file_get_contents("documents\TestApp.pdf"); $documentJSON = json_encode($build); $status = $this->sendRequest($this->packageAppend . $packageId['id'] . '/documents', $documentJSON, $doc, NULL); return $status; }Thank you, David Ilgen
Reply to: Text Anchor to Identify Signature Field
Wednesday, November 23, 2016 at 07:58amStill nothing with that array removed.
Reply to: Text Anchor to Identify Signature Field
Wednesday, November 23, 2016 at 08:53amWell, this is a little bit embarrassing. That typo seems to have done the trick. I think I may have been staring at this code for a bit too long. As always, thank you for all of your help - I greatly appreciate it.
David
Reply to: Text Anchor to Identify Signature Field
Wednesday, December 14, 2016 at 07:47amHey Haris,
I am currently working on some small changes to my code - I was wondering how I could change the signature from "Esigned by Full Name" to "E-Signed Date by Full Name". For example, I want the signature to look like the one in the attached image, which is the result using your code found here. Using the code (essentially the same as your last reply) above, would I need to change the "type" or "subtype" to something different?
Thank you,
David
Subscriptions
This user is not subscribed to any release notes.
Subscriptions Release Notes
This user is not subscribed to any release notes.