2016-11-22 68 views
0

我想添加一个锚点到一个xml文档(word文档),但它不工作的原因。我正在关注https://www.docusign.com/developer-center/explore/features/stick-etabs,标签放置方法2:自动放置(锚定标记)部分。这是我遇到的结果是:我试图调整anchorXOffset和anchorYOffset性能不能把一个锚点放在正确的位置

enter image description here

。我试图把签署“此致”文本之后:

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

我建议从一个字锚字符串,如“真诚”。

另外,从signHereTabs对象中删除“pageNumber”。在使用锚文本定位时不应使用它。

最后,请查看anchor text recipe了解更多信息和工作示例。