将DOCX发送到DocuSign REST API时出错

Rud*_*y B 0 docusignapi

尝试通过其余API将DOCX文档发送到docusign时,我收到以下错误.直到现在它已经运行了近一年.我用各种DOCX文件对它进行了测试,所有这些文件都返回了这个错误

"errorCode": "UNABLE_TO_CONVERT_DOCUMENT", 
"message": "System was unable to convert this document to a PDF. Unable to convert Document(afasf.docx) to a PDF. 
Error: UserId:********-****-*****-*****-*********** IPAddress:***.***.***.*** 
Source:ApiRESTv2:Could not submit Document to Conversion Server: EnvelopeId:00000000-0000-0000-0000-000000000000 DocumentName:afasf.docx - 
SubmitCode: -10242\r\nCould not submit Document to Conversion Server: EnvelopeId:00000000-0000-0000-0000-000000000000 DocumentName:afasf.docx - 
SubmitCode: -10242\r\nCould not submit Document to Conversion Server: EnvelopeId:00000000-0000-0000-0000-000000000000 DocumentName:afasf.docx - 
SubmitCode: -10242\r\n"
Run Code Online (Sandbox Code Playgroud)

Dav*_*sby 8

我期待着你从上面得到的答案,但这是在docx的base64中的示例

我使用这个在线工具进行编码,解码文件到base64 http://www.opinionatedgeek.com/dotnet/tools/Base64Encode/

URI,动词和标题:

POST /restapi/v2/accounts/225705/envelopes HTTP/1.1
Host: demo.docusign.net
X-DocuSign-Authentication: your info aka userid, password and integrator key
Content-Type: multipart/form-data; boundary=AAA
Accept: application/json
Run Code Online (Sandbox Code Playgroud)

邮政体:

--AAA
Content-Type: application/json
Content-Disposition: form-data

{
    "emailBlurb": "Test for basic docx",
    "emailSubject": "Test for docx",
    "status": "sent",
    "compositeTemplates": [
        {
            "inlineTemplates": [
                {

                    "sequence": "1",
                    "documents": [
                        {
                            "documentId": "1",
                            "name": "basic.docx"
                        }
                    ],
                    "recipients": {
                        "signers": [
                            {
                                "recipientId": "1",
                                "name": "Your Name",
                                "email": "youremail@yourdomain.com",
                                "defaultRecipient": "true",
                                "tabs": {
                                    "signHereTabs": [{
                                    "anchorString": "\\Signhere\\",
                                    "tabLabel": "Sign Here 1"
                                    }]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    ]
}

--AAA
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Content-Disposition: file; filename="basic.docx"; documentid=1
Content-Transfer-Encoding: base64

UEsDBBQABgAIAAAAIQDpURCwjQEAAMIFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAAC **[base64 truncated to meet StackOverflow Limit of 30000 since it was 33196 ]** FYAAGRvY1Byb3BzL2FwcC54bWxQSwUGAAAAAA0ADQBOAwAAtVgAAAAA

--AAA--
Run Code Online (Sandbox Code Playgroud)