2016-11-22 54 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瞭解更多信息和工作示例。