Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: Text Anchor to Identify Signature Field

0 votes
Haris, 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

0 votes
Hey 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

0 votes
Well, 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

0 votes
Hey 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

Attachments

Subscriptions

This user is not subscribed to any release notes.

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.