Я использую Docusign для добавления подписи к моим документам PDF в C#.Обращение с автозавершением DocuSign (привязка привязки) Вкладка помещена на странице C#
Я добавляю эту метку с идентификатором, классом и текстом «SignHereLastPage» до конца моей страницы html. Затем я преобразую его в 2-страничный PDF-файл.
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<body>
Some html.....
//add in the end
<div class='RightToLeft Signature Bold'> Sing__________________ </div>
<label id='SignHereLastPage' class='SignHereLastPage'style='color:white'>SignHereLastPage</label>
</body>
</html>
Если я поставлю signHere.PageNumber 2, и добавить х/у установки все работает нормально, но я хочу, чтобы автоматически добавить этот знак зоны с моим textValue.
Мой код:
Signer signer = new Signer();
signer.Email = Email;
signer.Name = signerName + LeadName;
signer.RecipientId = signerRecipientId;
signer.Tabs = new Tabs();
signer.Tabs.SignHereTabs = new List<SignHere>();
SignHere signHere = new SignHere();
signHere.AnchorString = "SignHereLastPage";//here my text in html
signHere.AnchorXOffset = "1";
signHere.AnchorYOffset = "0";
signHere.AnchorIgnoreIfNotPresent = "false";
signHere.AnchorUnits = "inches";
signer.Tabs.SignHereTabs.Add(signHere);
envDef.Recipients = new Recipients();
envDef.Recipients.Signers = new List<Signer>();
envDef.Recipients.Signers.Add(signer);
envDef.Status = "sent";
ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
DocuSign.eSign.Client.Configuration cfi = new DocuSign.eSign.Client.Configuration(apiClient);
string authHeader = "{\"Username\":\"" + x+ "\", \"Password\":\"" + xx+ "\", \"IntegratorKey\":\"" + xxx+ "\"}";
cfi.AddDefaultHeader("X-DocuSign-Authentication", authHeader);
EnvelopesApi envelopesApi = new EnvelopesApi(cfi);
EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(accountID, envDef);
ошибка, что я получаю
"ERRORCODE": "TAB_OUT_OF_BOUNDS", "сообщение": "Вкладка находится вне страницы Tab \" SignHere \ "находится на странице 1."
Мой HTML
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Html For pdf</title>
<link rel='stylesheet' href='test.css'> </head>
<body>
<div class='logo'><img src='https://testservices.colmexpro.com/registration/Styles/Images/layout/LogoForPdf.png' alt='logo'>
</div>
<div class='Main'>
<div class='Bold Center'> ????? ???? ????? ???? ????? </div>
<br/>
<div style='direction: rtl'> ????? ??????? ????? ?????? ??? (???? ???? ??????? ?????), ????'? - 2014, ???? ??? ??????, ?? ??.?'.?? ?????? ???? ??? ??'? (????: '<span class='Bold'>?????</span>') ???? ?? ????? ?????? ????? ??????? ????? ?????. ?? ???? ?????? ????? ???? ?? ???? ????? ?? ???????? ??????? ??????? ???????? ???????? ??????? ????? ?????? ??????? ??????? ?? ???? ????? ??????, ?? ????, ??????, ????? ?? ????? ??????? ?????. </div>
<br/>
<div> ????? ??? ?? ?????? ??????? ?????? ?? ?????? ????? ??????? ?? ????? ????? ??? ?? ?????? ?????? ??????? ????? ??? ??? ?????? ???? ?? ????. ?????? ????? ??????/????/????/???? ???? ????? ????? ??? ????? ?????? ????. </div>
<br/>
<div> ????????, ??????? ???????? ????, ??? ??? ?????. </div>
<div class='Bold HeadlineSecondary'> ?. ????? ?????? </div>
<div class='divTable FirstTable' style='border: 1px solid #000;'>
<div class='MainTable divTableBody'>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ??????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??? :</span><span class='other'> </span><span class='personal'> Some Other Status</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ????? </span>
</div>
<div class='divTableCell'> <span class='answer'> </span><span class='other'> </span><span class='personal'> aaa</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ????? ????? (??????) </span>
</div>
<div class='divTableCell'> <span class='answer'> ??? 1,000,000</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ?????? ????? ?????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??? ?? ?????? ????? ??????</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ???? ????? ???? (??????) </span>
</div>
<div class='divTableCell'> <span class='answer'> ???? ? 1,000,000</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ???? ????? ???? (??????) </span>
</div>
<div class='divTableCell'> <span class='answer'> ???? ? 100,000</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ???? ???? ?????? ?????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ????? ??????</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
</div>
</div>
<div class='Bold HeadlineSecondary'> ?. ????? ?????? ?? ??? ???? </div>
<div class='divTable SecondTable' style='border: 1px solid #000;'>
<div class='MainTable divTableBody'>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ???? ???? ?? ???? ???? ????? ?????? ???? ???? ???? ????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ????? ???? ?? ???? ???? ????? ?????? ????? ???? ????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ?? ?????</span><span class='other'> </span><span class='personal'> somewhere</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ???? ?? ????? ????? ??? ?????? ?? ????? ??????? ????? ?? ????? ??????? ???????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ???? ???? ?????? ??????? ???????? ??????? ?????????? ????? ????? ?????. ?? ?? ???, ???? ??? ??? ????? ?????? ????? ?????? ????? ????? ?? ?????? ?????? ????? ???????, ???? ???, ?? ???? ?????? ?????? ????? ?????????? ??? ?? ????? ???? ???? ???? ???. ??? ??????? ????? ??????? ?????, ???? ???? ????? ?????? ???? ??? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ???? ?? ????? ?????? ???? ???? ??? ????? ???? ????? ????? ???? ????? ???? ?????? </span>
</div>
<div class='divTableCell'> <span class='answer'> ??</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ????? ????????? ????????? ????? ???? ????? ????? ???? ???? ??? ??? ?? ???? ??????? ?????? ????? 12 ?????? ???????? </span>
</div>
<div class='divTableCell InnerTable'> <span class='answer'> <div class='ForPdf divTableRow'><div class='divTableCell'><span class='label'>?????</span>
</div>
<div class='divTableCell'><span class='answer'>120+</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'>????? ???</span>
</div>
<div class='divTableCell'><span class='answer'>120+</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'>??? - goood</span>
</div>
<div class='divTableCell'><span class='answer'>120+</span>
</div>
</div>
</span>
</div>
</div>
</div>
</div>
<div class='Bold HeadlineSecondary'> ?. ????? ???? ?????? ????? ????? </div>
<div class='divTable ThirdTable' style='border: 1px solid #000;'>
<div class='MainTable divTableBody'>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ??? ????? ??????? ?????? ????? ???? ??????? ????? (????? ???"?) </span>
</div>
<div class='divTableCell'> <span class='answer'> ??? ? 1,000,000</span><span class='other'> </span><span class='personal'> </span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'> ?? ??? ????? ????? ?? ????? ???????? ??????? ????? ??????? ????? ???? ??? ??? ?? ???? ??????? ????? ????? </span>
</div>
<div class='divTableCell InnerTable'> <span class='answer'> <div class='ForPdf divTableRow'><div class='divTableCell'><span class='label'>?? ???? ?????? ??????? ?????</span>
</div>
<div class='divTableCell'><span class='answer'>100+</span>
</div>
</div>
<div class='ForPdf divTableRow'>
<div class='divTableCell'><span class='label'>???? ?????? ?? ?????</span>
</div>
<div class='divTableCell'><span class='answer'>100+</span>
</div>
</div>
</span>
</div>
</div>
</div>
</div>
</br>
</br>
<div class='RightToLeft Signature Bold'> SignHereLastPage ????? __________________ </div>
</div>
</body>
</html>
Пожалуйста реф docs.docusign.com, когда вы можете. Большое спасибо, Ларри –
Ссылка на новую ссылку для документации. –
Omg :(он работает сейчас, но я снова возвращаюсь к дублированной проблеме (мой предыдущий вопрос) –