2015-12-03 26 views
0

我们在DocuSign中有多个模板,每个模板都带有单个文档。为此,我们在应用程序中设计了一个界面,列出了所有模板。在发送选定的模板(和文档)之前,是否可以从模板(不是页面图像)预览文档?使用REST API从模板预览文档

注:已使用RESTFul API。

回答

0

使用 '/袋/ {} templateid /文件/ {documentid}' REST API调用以获取响应,然后在打印响应以在浏览器中预览之前设置标题。

例如:

header('Content-type: application/pdf'); 
header('Content-Disposition: inline; filename="xyz.pdf"'); 
header('Content-Transfer-Encoding: binary'); 
header('Accept-Ranges: bytes'); 
print_r($response);//Print the response form the REST API.