duanfu1945 2016-01-12 14:17
浏览 23

转换PDF时HelloSign API PHP错误

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);

  • 写回答

1条回答 默认 最新

  • duanjiangzhi6851 2016-01-12 20:53
    关注

    This is Alex from HelloSign API Support. Please write in to apisupport@hellosign.com with:

    1. a copy of the PDF that's giving you the conversion error
    2. which program you're using to create the PDF (it sounds like you're saying if you save a copy using AdobeDc, it will work, so I'm assuming you're using another program initially to create the PDF)
    3. the signature_request_id of one of your attempts where you received the conversion error
    评论

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)