{"id":2990,"date":"2024-10-09T16:22:28","date_gmt":"2024-10-09T08:22:28","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=2990"},"modified":"2024-10-09T16:22:29","modified_gmt":"2024-10-09T08:22:29","slug":"%e5%a6%82%e4%bd%95%e9%99%90%e5%88%b6%e5%9b%be%e6%a0%87%e6%b3%a8%e9%87%8a%e7%9a%84%e6%97%8b%e8%bd%ac%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=2990","title":{"rendered":"\u5982\u4f55\u9650\u5236\u56fe\u6807\u6ce8\u91ca\u7684\u65cb\u8f6c\uff1f"},"content":{"rendered":"\n<p class=\"has-body-font-family has-medium-font-size\"><strong>\u521d\u59cb\u5316PDFUI\u65f6\u914d\u7f6e\u53c2\u6570AnnotComponentConfig<\/strong><\/p>\n\n\n\n<p>\u5728\u67d0\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u5bf9\u7279\u5b9a\u7c7b\u578b\u7684\u6ce8\u91ca\u8fdb\u884c\u9650\u5236\u3002\u4f8b\u5982\uff1a\u5728\u5ba1\u9605\u6587\u6863\u65f6\uff0c\u60a8\u53ef\u80fd\u53ea\u5e0c\u671b\u7528\u6237\u80fd\u591f\u79fb\u52a8stamp\u6ce8\u91ca\uff0c\u800c\u4e0d\u80fd\u65cb\u8f6c\u6216\u8c03\u6574\u5176\u5927\u5c0f\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>var pdfui = new PDFUI({\n    viewerOptions: {\n        libPath: '..\/..\/..\/lib',\n        jr: {\n            readyWorker: readyWorker\n        },\n        customs: {\n            \/\/ \u793a\u4f8b\uff1a\u4ec5\u5141\u8bb8\u79fb\u52a8stamp\u6ce8\u91ca\n            getAnnotComponentConfig: function (annotComponent, props) {\n                let annot = annotComponent.getModel();\n                if (annot.getType() === 'stamp') {\n                    return {\n                        moveable: true,\n                        enableDiagonally: false,\n                        rotatable: false,\n                        resizable: false\n                    };\n                }\n                return {};\n            }\n        }\n    },\n    renderTo: '#pdf-ui',\n    appearance: UIExtension.appearances.AdaptiveAppearance,\n    fragments: &#91;],\n    addons: UIExtension.PDFViewCtrl.DeviceInfo.isMobile ?\n        '..\/..\/..\/lib\/uix-addons\/allInOne.mobile.js' :\n        '..\/..\/..\/lib\/uix-addons\/allInOne.js'\n});\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading is-style-default has-body-font-family has-large-font-size\" style=\"text-decoration:underline\">\u9002\u7528\u573a\u666f\u793a\u4f8b<\/h3>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u6587\u6863\u5ba1\u9605\u548c\u6279\u6ce8<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u5728\u56e2\u961f\u534f\u4f5c\u4e2d\uff0c\u5ba1\u9605\u8005\u53ef\u80fd\u9700\u8981\u5728\u6587\u6863\u4e0a\u6dfb\u52a0stamp\u6ce8\u91ca\u4ee5\u6807\u8bb0\u91cd\u8981\u4fe1\u606f\u3002\u4e3a\u4e86\u4fdd\u6301\u6ce8\u91ca\u7684\u4e00\u81f4\u6027\u548c\u53ef\u8bfb\u6027\uff0c\u60a8\u53ef\u4ee5\u9650\u5236\u8fd9\u4e9b\u6ce8\u91ca\u7684\u64cd\u4f5c\uff0c\u53ea\u5141\u8bb8\u79fb\u52a8\u800c\u4e0d\u5141\u8bb8\u65cb\u8f6c\u6216\u8c03\u6574\u5927\u5c0f\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u7535\u5b50\u7b7e\u540d<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u5728\u7535\u5b50\u7b7e\u540d\u573a\u666f\u4e2d\uff0cstamp\u6ce8\u91ca\u53ef\u4ee5\u7528\u4f5c\u7b7e\u540d\u56fe\u7ae0\u3002\u4e3a\u4e86\u786e\u4fdd\u7b7e\u540d\u4f4d\u7f6e\u7684\u51c6\u786e\u6027\u548c\u9632\u6b62\u7be1\u6539\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u53ea\u5141\u8bb8\u79fb\u52a8\u7b7e\u540d\u56fe\u7ae0\uff0c\u800c\u4e0d\u5141\u8bb8\u5176\u4ed6\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u6559\u80b2\u548c\u57f9\u8bad<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u5728\u6559\u80b2\u548c\u57f9\u8bad\u6750\u6599\u4e2d\uff0c\u6559\u5e08\u53ef\u80fd\u4f1a\u4f7f\u7528stamp\u6ce8\u91ca\u6765\u6807\u8bb0\u5173\u952e\u70b9\u6216\u95ee\u9898\u3002\u4e3a\u4e86\u907f\u514d\u5b66\u751f\u8bef\u64cd\u4f5c\uff0c\u60a8\u53ef\u4ee5\u9650\u5236\u8fd9\u4e9b\u6ce8\u91ca\u7684\u529f\u80fd\uff0c\u53ea\u5141\u8bb8\u79fb\u52a8\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p class=\"has-body-font-family has-medium-font-size\">\u8bf7\u60a8\u6ce8\u610f\uff1a\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cgetAnnotComponentConfig\u51fd\u6570\u7528\u4e8e\u914d\u7f6e\u6ce8\u91ca\u7ec4\u4ef6\u7684\u884c\u4e3a\u3002\u5bf9\u4e8e\u7c7b\u578b\u4e3astamp\u7684\u6ce8\u91ca\uff0c\u4ec5\u5141\u8bb8\u5176\u79fb\u52a8\uff0c\u4e0d\u5141\u8bb8\u65cb\u8f6c\u3001\u8c03\u6574\u5927\u5c0f\u6216\u5bf9\u89d2\u7ebf\u79fb\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521d\u59cb\u5316PDFUI\u65f6\u914d\u7f6e\u53c2\u6570AnnotComponentConfig \u5728\u67d0\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u5bf9\u7279\u5b9a\u7c7b\u578b\u7684\u6ce8 [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-2990","post","type-post","status-publish","format-standard","hentry","category-websdk"],"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\/2990","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\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2990"}],"version-history":[{"count":4,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2990\/revisions"}],"predecessor-version":[{"id":3035,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/2990\/revisions\/3035"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}