I am not able to upload my generated pdf into hellosign
both manually and using API key.It throws some error when converting the pdf.
If i save a copy using the AdobeDc
means i get uploaded.
Can you guys please help me for the problem.
Here is my code
<?php
//include_once("hellosign\library\HelloSign");
//include 'C:\xampp\htdocs\test_sign\hellosign\library\HelloSign\Client';
include_once("hellosign/library/HelloSign/Client.php");
include_once("hellosign/library/HelloSign/SignatureRequest.php");
$client = new HelloSign\Client('API KEY');
$request = new HelloSign\SignatureRequest;
$request->enableTestMode(true);
$request->setTitle('Su test by API');
$request->setSubject('Testing by using API');
$request->setMessage('Please sign this Doc,Let me know if you have any questions.');
$request->addSigner('mailid', 'Subject');
//path of file located
$path="C:/xampp/htdocs/projectfolder/filename";
$request->addFile($path);
$response = $client->sendSignatureRequest($request);
var_dump($response);
print_r($response->signature_request_id);
?>
I have addded the API key in the API field,And i gave the generated file path in the addfile($path);