私のアプリケーションでは、複数のドキュメントの封筒を送信する必要があるという要件があります。複合テンプレートを使用して、これを部分的に達成しました。ただし、以下で説明するシナリオで問題が発生しています。
「複数のテンプレート (複合テンプレートを使用) と、メタデータを含む PDF ドキュメント (pdf バイトと共に) を含むエンベロープ。」
ドキュメントの pdf バイトとメタ データを使用してエンベロープを送信できましたが、これを同じエンベロープ内のテンプレートと組み合わせることができませんでした。
前進する方法を提案できますか?
更新: 上記のシナリオのエンベロープの生成に進みましたが、問題があります。問題は、アンカー テキストを使用してこの PDF ドキュメントに「ここに署名」タブを配置していて、残念ながらアンカー テキストが他のテンプレートにも存在することです。これにより、テンプレート (これらは適切なテンプレートであり、空ではありません) に 2 つの [ここに署名] タブがあり、アンカー テキストが表示されます。
可視性を高めるために JSON 文字列を追加します。空のテンプレートのバッキング ドキュメントとして機能するこの json 文字列と一緒に PDF バイトを送信していることに注意してください。
{
"status": "sent",
"templateId": "Empty Template ID(This template does not contain anything and just a blank pdf page in background)****************",
"templateRoles": [{
"name": "****************",
"accessCode": "1234",
"roleName": "employee",
"email": "****************",
"recipientId": "1",
"tabs": {
"textTabs": [{
"name": "Hyperlink Here",
"documentId": "1",
"anchorString": "Employee Signature:",
"anchorXOffset": "185",
"anchorYOffset": "-39",
"anchorUnits": "pixels",
"font": "arial",
"fontSize": "size7",
"fontColor": "brightblue",
"value": ": Click Here",
"tabLabel": "#HREF termsAndConditionLink"
}],
"dateSignedTabs": [{
"name": "DateSigned",
"tabLabel": "DateSigned",
"documentId": "1",
"additionalProperties": {
},
"anchorString": "Employee Signature:",
"anchorXOffset": "430",
"anchorYOffset": "1",
"anchorUnits": "pixels"
}],
"signHereTabs": [{
"documentId": "1",
"anchorString": "Employee Signature:",
"anchorXOffset": "180",
"anchorYOffset": "10",
"anchorUnits": "pixels",
"scaleValue": 0.0,
"anchorIgnoreIfNotPresent": "true"
}]
}
}],
"brandId": "Brand****************",
"documents": [{
"name": "Doc2.pdf",
"documentId": "1"
}],
"compositeTemplates": [{
"serverTemplates": [{
"sequence": "1",
"templateId": "Proper Template ID****************"
}],
"inlineTemplates": [{
"sequence": "1",
"recipients": {
"signers": [{
"name": "****************",
"accessCode": "1234",
"roleName": "employee",
"email": "****************",
"recipientId": "1",
"tabs": {
"textTabs": [{
"value": "VALUE1",
"tabLabel": "TEXTTAB1"
},
{
"value": "VALUE2",
"tabLabel": "TEXTTAB2"
}]
}
}]
}
}]
}],
"emailBlurb": "Please sign document using link below",
"emailSubject": "Please complete the documents."
}