{"id":5576,"date":"2025-06-06T15:21:28","date_gmt":"2025-06-06T07:21:28","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=5576"},"modified":"2025-06-18T14:47:59","modified_gmt":"2025-06-18T06:47:59","slug":"%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae%e6%b3%a8%e9%87%8a%e5%86%85%e5%ae%b9%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=5576","title":{"rendered":"\u5982\u4f55\u8bbe\u7f6e\u6ce8\u91ca\u5185\u5bb9\u7684\u9ed8\u8ba4\u5b57\u4f53"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"5576\" class=\"elementor elementor-5576\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-30b3364f e-flex e-con-boxed e-con e-parent\" data-id=\"30b3364f\" 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-2a369c5f elementor-widget elementor-widget-text-editor\" data-id=\"2a369c5f\" 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<p class=\"ds-markdown-paragraph\">\u7528\u6237\u9700\u8981\u4fee\u6539\u6ce8\u91ca\u4e2d\u81ea\u7531\u6587\u672c\uff08freetext\uff09\u7684\u9ed8\u8ba4\u5b57\u4f53\u6837\u5f0f\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff1a<\/p>\n<ul>\n<li><strong>\u76d1\u542c\u6ce8\u91ca\u6dfb\u52a0\u4e8b\u4ef6<\/strong>\uff1a\u5728\u6dfb\u52a0\u6ce8\u91ca\u540e\uff0c\u901a\u8fc7\u4e8b\u4ef6\u56de\u8c03\u52a8\u6001\u8bbe\u7f6e\u5b57\u4f53\u5c5e\u6027\u3002<\/li>\n<\/ul>\n<p><!-- \/wp:paragraph --><!-- wp:paragraph --><\/p>\n<p><!-- \/wp:paragraph --><!-- wp:paragraph --><\/p>\n<p><!-- \/wp:paragraph --><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5fc2ffe elementor-widget elementor-widget-code-highlight\" data-id=\"5fc2ffe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>pdfViewer.eventEmitter.on(PDF.constant.DataEvents.annotationAdd, async (annotations) =&gt; {\nannotations.forEach(async annot = &gt;{\n        var type = await annot.getType();\n        switch (type) {\n            case \"freetext\":\n                var jsonAppearance = {\n                    textColor:0Xff000000,\n                    textSize:12,\n                    font: {\n                        \"name\": \"\u601d\u6e90\u9ed1\u4f53\",\n                        \"styles\": 0,\n                        \"charset\": 134\n                    }\n                }\n                await annot.setDefaultAppearance(jsonAppearance);\n                break;\n            default:\n                break;\n        } \n    });\n})<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8ce61ab elementor-widget elementor-widget-text-editor\" data-id=\"8ce61ab\" 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<ul>\n<li><strong>\u89c6\u56fe\u5c42\u9884\u8bbe\u9ed8\u8ba4\u5c5e\u6027<\/strong>\uff1a\u76f4\u63a5\u5728View\u4e2d\u914d\u7f6e\u6ce8\u91ca\u7684\u9ed8\u8ba4\u5b57\u4f53\u6837\u5f0f\u3002<\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b1cfa1 elementor-widget elementor-widget-code-highlight\" data-id=\"6b1cfa1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>pdfViewer.setDefaultAnnotConfig(function(type,intent){\n        let config={};\nswitch (type) {\ncase\"freetext\":\n\n                 config.defaultAppearance ={\n                    textColor:0Xff0000ff,\/\/\u9ed8\u8ba4\u84dd\u8272\u662f0Xff0000ff\uff0c\u9ed1\u8272\u662f0Xff000000\n                    textSize:12,\n                    font: {\n                        \"name\": \"\u601d\u6e90\u9ed1\u4f53\",\/\/\u4fee\u6539\u4e3a\u9700\u8981\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u5b57\u4f53\u540d\u79f0\n                        \"styles\": 0,\n                        \"charset\": 134\n                    }\n                }\nbreak;\ndefault:\nbreak;\n         }\nreturn config;\n     });<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\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-7614921 e-flex e-con-boxed e-con e-parent\" data-id=\"7614921\" 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-b5cf27a elementor-widget elementor-widget-text-editor\" data-id=\"b5cf27a\" 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<p>\u4e24\u79cd\u65b9\u5f0f\u5747\u53ef\u6ee1\u8db3\u9700\u6c42\uff0c\u7528\u6237\u53ef\u6839\u636e\u5177\u4f53\u573a\u666f\u9009\u62e9\u5b9e\u73b0\u65b9\u6848\u3002<\/p>\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>\u7528\u6237\u9700\u8981\u4fee\u6539\u6ce8\u91ca\u4e2d\u81ea\u7531\u6587\u672c\uff08freetext\uff09\u7684\u9ed8\u8ba4\u5b57\u4f53\u6837\u5f0f\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff1a \u76d1\u542c\u6ce8\u91ca\u6dfb\u52a0\u4e8b\u4ef6\uff1a\u5728\u6dfb [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[716,212,718,374,664,717,673],"class_list":["post-5576","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-freetext","tag-javascript","tag-view","tag-374","tag-664","tag-717","tag-673"],"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\/5576","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\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5576"}],"version-history":[{"count":39,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/5576\/revisions"}],"predecessor-version":[{"id":5707,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/5576\/revisions\/5707"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}