我对通过 REST API 进行的文档签名附件有疑问。它以前完美运行,但出现以下错误消息,
{ "errorCode": "UNABLE_TO_CONVERT_DOCUMENT", "message": "系统无法将此文档转换为 PDF。Unab (截断...)
如果可以的话,请帮助我
Bellow 是我用于将图像文件附加到文档的代码段。
if(isset($this->attachments['NIC_Rear'])) {
array_push($dataArray['compositeTemplates'],
[
'inlineTemplates' => array(
[
'sequence' => '3',
'recipients' => array(
'signers' => array([
'email' => $this->issuerEmail,
'name' => $this->issuerName,
'recipientId' => '1',
'roleName' => $this->roleName,
'tabs' => $this->tabs,
])
)
]
),
'document' => array('documentId' => '3',
'name' => 'Attachment11',
'fileExtension' => get_file_extension_from_file($this->attachments['NIC_Rear']),
'width' => 100,
'height' => 100,
'documentBase64' => isset($this->attachments['NIC_Rear']) ? base64_encode($this->attachments['NIC_Rear']) : '',
),
]
);
}