Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: attempting to use Simple PHP Web Application

0 votes
MULTIPART_BOUNDARY = '----WebKitFormBoundary7MA4YWxkTrZu0gW' my code is $build= array( 'documents' =>array( array( 'id' => 'sample-contract', 'name' => 'Test Document', 'extract' => true, 'data' => array( 'esl_doc_extract_type' => 1 ) ) ), 'status' => 'SENT', 'type' => 'PACKAGE', 'roles' => array( array( 'id' => 'signer1', 'type' => 'SIGNER', 'signers' => array( array( 'email' => '[email protected]', 'firstName' => 'Hemanta', 'lastName' => 'kundu', 'id' => 'signer1' ) ), 'name' => 'signer1' ) ), 'name' => 'Text Tags Example Package' ); $packageJSON = json_encode($build); $postdata = "--" . MULTIPART_BOUNDARY . "\r\n"; $postdata .= "Content-Disposition: form-data; name=\"file\"; filename=\"sample_contract1.pdf\"\r\n"; $postdata .= "Content-Type: application/pdf" . "\r\n\r\n"; $postdata .= Storage::get("documents/sample_contract1.pdf");//file_get_contents $postdata .= "\r\n\r\n"; $postdata .= "--" . MULTIPART_BOUNDARY . "\r\n"; $postdata .= "Content-Disposition: form-data; name=\"payload\"\r\n\r\n"; $postdata .= $packageJSON; $postdata .= "\r\n\r\n"; $postdata .= "--" . MULTIPART_BOUNDARY . "--\r\n"; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://sandbox.e-signlive.ca/api/packages", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => $postdata, CURLOPT_HTTPHEADER => array( "Accept: application/json", "Authorization: Basic XXXXX", "Content-Type: multipart/form-data", "content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" ) )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } and sample_contract add in upload section

Attachments

Reply to: attempting to use Simple PHP Web Application

0 votes
For field injection in the PDF how to modify the PDF? I want to add field injection in the same PDF for insert some data. I follow this link https://developer.esignlive.com/guides/feature-guides/field-injection/ but don't understand how to modify my PDF file accordingly. Please help me. For that, I upload my PDF document with screenshot. the problem is marked in red colour. Please tell me the process how to modify my document. Otherwise, in future if require to customize the PDF then we facing a greet problem. Please help me.

Attachments

Reply to: attempting to use Simple PHP Web Application

0 votes
Hey Haris, Thanks, I create the from field. But I have another issue that perhaps you can help me with. I follow this link https://developer.esignlive.com/guides/feature-guides/field-injection/ for signature field, how to create signature field and date field in pdf?

Reply to: attempting to use Simple PHP Web Application

0 votes
Hey Haris, Thanks, I send the document successfully. But I have another issue that perhaps you can help me with. When I send the document to e-mail address its showing the English language. But I want to change this language sometime in English and other Language with my database. How can I do it? please help me.

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.