{"id":8184,"date":"2026-04-01T10:51:43","date_gmt":"2026-04-01T02:51:43","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=8184"},"modified":"2026-04-13T14:02:40","modified_gmt":"2026-04-13T06:02:40","slug":"%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e9%93%85%e7%ac%94%e6%b3%a8%e9%87%8a%e7%9a%84%e9%a2%9c%e8%89%b2%e9%bb%98%e8%ae%a4%e4%b8%ba%e9%bb%91%e8%89%b2%ef%bc%8c%e5%90%8c%e6%97%b6%e6%94%af%e6%8c%81%e4%bf%ae","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=8184","title":{"rendered":"\u5982\u4f55\u8bbe\u7f6e\u94c5\u7b14\u6ce8\u91ca\u7684\u989c\u8272\u9ed8\u8ba4\u4e3a\u9ed1\u8272\uff0c\u540c\u65f6\u652f\u6301\u4fee\u6539\u989c\u8272\u4e3a\u7ea2\u8272\uff1f"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"8184\" class=\"elementor elementor-8184\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-48995807 e-flex e-con-boxed e-con e-parent\" data-id=\"48995807\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2b871614 elementor-widget elementor-widget-text-editor\" data-id=\"2b871614\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>\u8c03\u7528setDefaultAnnotConfig\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u5404\u79cd\u7c7b\u578b\u6ce8\u91ca\u7684\u7f3a\u7701\u5c5e\u6027\u3002\u6ce8\u91ca\u5bf9\u8c61\u4e0b\u7684setBorderColor\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u6ce8\u91ca\u7684\u8fb9\u6846\u989c\u8272\u3002<\/p>\n\n\n\n<p>\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pdfui.setDefaultAnnotConfig(function(type, intent) {\n    let config = {};\n\n    switch (type) {\n        case \"ink\":\n            config.color = 0xff000000;\/\/\u8bbe\u7f6e\u94c5\u7b14\u989c\u8272\u9ed8\u8ba4\u4e3a\u9ed1\u8272\n            break;\n        default:\n            break;\n    }\n    return config;\n});\nvar selectedAnnot;\npdfui.addViewerEventListener(UIExtension.PDFViewCtrl.Events.tapAnnotation, function(annotRender) {\n    \/\/\u83b7\u53d6\u9009\u4e2d\u7684\u6ce8\u91ca\n    selectedAnnot = annotRender.getAnnot();\n});\n\/\/\u4fee\u6539\u94c5\u7b14\u6ce8\u91ca\u7684\u989c\u8272\nfunction changePencilColor(pencilAnnot,color){\n    \/\/ pencilAnnot.setBorderColor(0xff0000);\n    pencilAnnot.setBorderColor(color);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2ccf5a0 e-flex e-con-boxed e-con e-parent\" data-id=\"2ccf5a0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f127181 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"f127181\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/developers.fuxinsoft.cn\/free-trial\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">\u514d\u8d39\u83b7\u53d6SDK\u8bd5\u7528<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u8c03\u7528setDefaultAnnotConfig\u63a5\u53e3\u53ef\u4ee5\u8bbe\u7f6e\u5404\u79cd\u7c7b\u578b\u6ce8\u91ca\u7684\u7f3a\u7701\u5c5e\u6027\u3002\u6ce8\u91ca\u5bf9\u8c61\u4e0b\u7684setBorde [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[1341,1340],"class_list":["post-8184","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-1341","tag-1340"],"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\/8184","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\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8184"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8184\/revisions"}],"predecessor-version":[{"id":8433,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8184\/revisions\/8433"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}