{"id":2462,"date":"2024-08-22T15:10:37","date_gmt":"2024-08-22T07:10:37","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=2462"},"modified":"2024-09-05T14:05:38","modified_gmt":"2024-09-05T06:05:38","slug":"%e3%80%90foxit-pdf-sdk%e3%80%91%e5%8f%82%e8%80%83sdk%ef%bc%88%e5%85%a8%e5%b9%b3%e5%8f%b0%ef%bc%89%e7%9a%84annotation-java%e4%b8%ad%e7%9a%84stamp%e6%89%b9%e6%b3%a8%e5%88%9b%e5%bb%ba%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=2462","title":{"rendered":"\u5173\u4e8e\u521b\u5efaStamp\u6279\u6ce8\u7684\u6837\u4f8b\u4ee3\u7801\uff0c\u4e3a\u4f55\u4f1a\u5728\u591a\u7ebf\u7a0b\u573a\u666f\u51fa\u73b0\u201c\u968f\u673a\u201d\u5d29\u6e83\u7684\u60c5\u51b5\uff1f"},"content":{"rendered":"\n<p>\u5173\u4e8eSDK(\u5168\u5e73\u53f0)\u521b\u5efa\u4ee3\u7801\uff08\u4ee5annotation.java\u4e2d\u7684Stamp\u4e3e\u4f8b\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family\"><code><code>\/\/ Set icon provider for annotation to Foxit PDF SDK.\nMyIconProvider iconProvider = new MyIconProvider(path);\nLibrary.setAnnotIconProviderCallback(iconProvider);\nLibrary.setActionCallback(null);<\/code><\/code><\/pre>\n\n\n\n<p>\u4e0a\u8ff0\u4ee3\u7801\u5199\u5728\u4e86\u5177\u4f53\u65b9\u6cd5\u4e2d\uff0cpath\u6307\u5411\u5177\u4f53\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u5728\u591a\u7ebf\u7a0b\u573a\u666f\u53cd\u590d\u8bbe\u5b9a\uff0c\u53ef\u80fd\u5b58\u5728\u7ebf\u7a0bA\u9519\u8bef\u4f7f\u7528\u7ebf\u7a0bB\u7684path\u7684\u60c5\u51b5\uff0c\u5982\u679c\u7ebf\u7a0bB\u7684path\u8def\u5f84\u4e0b\u4e0d\u5b58\u5728\u5177\u4f53\u6587\u4ef6\u4f5c\u5bf9\u5e94\uff0c\u6240\u4ee5\u5bfc\u81f4\u7a0b\u5e8f\u5f02\u5e38\uff08\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u627e\u4e0d\u5230\u5f02\u5e38\uff09\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u6700\u4f73\u5b9e\u8df5\u65b9\u5f0f\uff1a<br>1. \u4e0a\u8ff0\u4ee3\u7801\u5728\u5168\u5c40\u8303\u56f4\u5185\u521d\u59cb\u5316\uff0c\u800c\u4e0d\u662f\u5728\u5177\u4f53\u65b9\u6cd5\u4e2d\u521d\u59cb\u5316\uff0c\u4fdd\u8bc1\u7a0b\u5e8f\u7684\u4e00\u4e2a\u751f\u547d\u5468\u671f\u4ec5\u521d\u59cb\u5316\u4e00\u6b21\uff08\u4e0eSDK\u7684license\u521d\u59cb\u5316\u6982\u5ff5\u4e00\u6837\uff09\uff1b<br>2. path\u6307\u5b9a\u6587\u4ef6\u5939\u7684\u5177\u4f53\u8def\u5f84\uff0c\u800c\u4e0d\u662f\u6587\u4ef6\u7684\u5177\u4f53\u8def\u5f84\uff0c\u5f00\u53d1\u4eba\u5458\u5728\u7c7bMyIconProvider\u7684hasIcon\u65b9\u6cd5\u4e2d\u6307\u5b9a\u5177\u4f53\u6587\u4ef6\u8def\u5f84\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8eSDK(\u5168\u5e73\u53f0)\u521b\u5efa\u4ee3\u7801\uff08\u4ee5annotation.java\u4e2d\u7684Stamp\u4e3e\u4f8b\uff09\uff1a \u4e0a\u8ff0\u4ee3\u7801\u5199\u5728\u4e86\u5177\u4f53\u65b9\u6cd5\u4e2d [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-2462","post","type-post","status-publish","format-standard","hentry","category-gsdk"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2462"}],"version-history":[{"count":13,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions"}],"predecessor-version":[{"id":2688,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions\/2688"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}