How to change the coordinates of Signature in CoSign Signature SOAP API and place it over some given text (i.e. Sign Here)?

一笑奈何 提交于 2019-11-28 10:52:18

问题


My pdf file will have an area with the text "Sign here". It could be anywhere in the pdf(i.e. the coordinates for that area is not defined) . I would like to add the signature over that given area or text(eg "Sign Here") in my pdf file. In the given code http://developer.arx.com/quick-start/sapi-web-services/#t-helloworld , how can I achieve this?


回答1:


You need to know which page, and where on the page, the graphical part of the digital signature should be placed.

One way to determine the location dynamically is to add a "Signature Field Locator." In the original PDF you include a special Field Locator text string such as <<<w=100;h=120;n=employee;a=1;>>>

You set the Field Locator text color to be the same as the page's background color so it won't show when the pdf is viewed.

CoSign Signature Local includes methods for locating and using Field Locators to set the position of a graphical signature. See the example program.



来源:https://stackoverflow.com/questions/24484147/how-to-change-the-coordinates-of-signature-in-cosign-signature-soap-api-and-plac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!