我正在尝试将锚添加到xml文档(word文档),但由于某种原因它无法正常工作。我正在关注https://www.docusign.com/developer-center/explore/features/stick-etabs,标签展示位置方法2:自动放置(锚点标记)部分。这就是我的结果:
我尝试调整anchorXOffset和anchorYOffset属性。我试图在“你的真诚”文本之后加上标志:
request_hash = {
'status' => 'sent',
'emailBlurb' => 'eblurb',
'emailSubject' => 'Hello, you have a contract file to be signed. Hurry up!',
'documents' => [
{
'name' => file_name,
'documentId' => '1',
'order' => '1'
}
],
'recipients' => {
'signers' => [
{ # Employee
'email' => user_email,
'name' => user_name,
'recipientId' => '2',
"tabs" => {
"signHereTabs" => [{
#"xPosition" => "120",
#"yPosition" => "110",
"anchorString": "SIGNED",
"anchorXOffset": "1",
"anchorYOffset": "0",
"anchorIgnoreIfNotPresent": "true",
"anchorUnits": "inches",
"documentId" => "1",
"pageNumber" => "11"
}]
}
},
{ # The owner
'email' => ENV['manager_email'],
'name' => ENV['manager_name'],
'recipientId' => '1',
"tabs" => {
"signHereTabs" => [{
#"xPosition" => "70",
#"yPosition" => "500",
"anchorString": "Yours sincerely",
"anchorXOffset": "0",
"anchorYOffset": "0",
"anchorIgnoreIfNotPresent": "true",
"anchorUnits": "inches",
"documentId" => "1",
"pageNumber" => "10"
}]
}
}
]
}
}
答案 0 :(得分:0)
我建议从一个单词锚字符串开始,例如"真诚地"。
另外,删除" pageNumber"来自signHereTabs
对象。在您使用锚文本定位时,不应该使用它。
最后,请查看anchor text recipe以获取更多信息和工作示例。