{"id":8083,"date":"2026-03-19T15:42:14","date_gmt":"2026-03-19T07:42:14","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=8083"},"modified":"2026-03-19T15:51:12","modified_gmt":"2026-03-19T07:51:12","slug":"websdk-%e8%87%aa%e5%ae%9a%e4%b9%89%e6%b3%a8%e9%87%8a%e5%b1%9e%e6%80%a7%e4%b9%8b%e5%ad%97%e4%bd%93%e9%80%89%e6%8b%a9%e4%b8%8b%e6%8b%89%e6%a1%86%e7%95%8c%e9%9d%a2%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=8083","title":{"rendered":"WebSDK \u81ea\u5b9a\u4e49\u6ce8\u91ca\u5c5e\u6027\u4e4b\u5b57\u4f53\u9009\u62e9\u4e0b\u62c9\u6846\u754c\u9762\u5b9e\u73b0"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"8083\" class=\"elementor elementor-8083\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-45acc90 e-flex e-con-boxed e-con e-parent\" data-id=\"45acc90\" 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-23e14765 elementor-widget elementor-widget-text-editor\" data-id=\"23e14765\" 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<h2 class=\"wp-block-heading\">\u4e00\u3001\u529f\u80fd\u80cc\u666f<\/h2>\n\n<p>\u5ba2\u6237\u5728\u4f7f\u7528 WebSDK 11.0.6 \u7248\u672c\u65f6\uff0c\u5e0c\u671b\u81ea\u5b9a\u4e49\u6ce8\u91ca\u5c5e\u6027\u4e2d\u6ce8\u91ca\u6846\u7684\u5b57\u4f53\u9009\u62e9\u4e0b\u62c9\u6846\u754c\u9762\uff0c\u9700\u57fa\u4e8e\u6307\u5b9a\u7684\u5b57\u4f53\u6620\u5c04\u89c4\u5219\u5b9e\u73b0\u5b57\u4f53\u7684\u81ea\u5b9a\u4e49\u914d\u7f6e\u3001\u8bbe\u7f6e\u53ca\u56de\u663e\u903b\u8f91\u3002<\/p>\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u6838\u5fc3\u914d\u7f6e\u8bf4\u660e<\/h2>\n\n<h3 class=\"wp-block-heading\">2.1 \u5b57\u4f53\u6620\u5c04\u8868<\/h3>\n\n<p>\u8bf7\u4e0e\u798f\u6615\u6280\u672f\u652f\u6301\u540c\u4e8b\u83b7\u53d6\uff0c\u62ff\u5230\u5bf9\u5e94\u7684\u6587\u4ef6\u3002<\/p>\n\n<p>\u6587\u4ef6\u4e2did\uff1a\u5b57\u4f53\u552f\u4e00\u6807\u8bc6\uff0c\u7528\u4e8e\u5173\u8054\u5b57\u4f53\u540d\u79f0\u7684\u6620\u5c04\u5173\u7cfb\uff1btext\uff1a\u5b57\u4f53\u663e\u793a\u540d\u79f0\uff0c\u5c55\u793a\u5728\u81ea\u5b9a\u4e49\u4e0b\u62c9\u6846\u754c\u9762\u4e2d\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">2.2 \u5b57\u4f53\u9ed8\u8ba4\u503c\u8bbe\u7f6e<\/h3>\n\n<p>\u901a\u8fc7\u6ce8\u91ca\u5c5e\u6027\u7684font\u914d\u7f6e\u9879\u8bbe\u7f6e\u9ed8\u8ba4\u5b57\u4f53\uff0c\u5176\u4e2dname\u5b57\u6bb5\u9700\u5173\u8054\u6620\u5c04\u8868\u4e2did\u5bf9\u5e94\u7684text\u503c\uff0c\u7528FreeText::setDefaultAppearance\u793a\u4f8b\uff1a<\/p>\n\n<pre class=\"wp-block-code\"><code>annot.setDefaultAppearance({\ntextColor: 0xffff00ff,\ntextSize: 6,\nfont: {\n\"font\": {\"name\": \"Noto Sans\",\/\/\u4fee\u6539\u4e3a\u9700\u8981\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u5b57\u4f53\u540d\u79f0},\n\"styles\": PDFViewCtrl.PDF.constant.Font_Styles[AllCap],\n\"charset\": PDFViewCtrl.PDF.constant.Font_Charset[ANSI]\n}\n})<\/code><\/pre>\n\n<p>\u00a0<\/p>\n\n<h3 class=\"wp-block-heading\">2.3 \u5b57\u4f53\u56de\u663e\u903b\u8f91<\/h3>\n\n<p>\u6ce8\u91ca\u6846\u5b57\u4f53\u56de\u663e\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u89c4\u5219\uff0c\u786e\u4fdd\u663e\u793a\u4e0e\u914d\u7f6e\u4e00\u81f4\uff1a<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u4ece WebSDK \u4e2d\u83b7\u53d6\u5f53\u524d\u6ce8\u91ca\u6846\u7684\u5b57\u4f53name\u503c\uff1a\u901a\u8fc7FreeText::getDefaultAppearance()\u65b9\u6cd5<\/li>\n\n<li>\u7b2c\u4e00\u6b65\u5339\u914d\uff1a\u6839\u636ename\u503c\u5728\u5b57\u4f53\u6620\u5c04\u8868\u4e2d\u67e5\u627etext\u5b57\u6bb5\u5339\u914d\u7684\u9879\uff0c\u82e5\u5339\u914d\u6210\u529f\uff0c\u4e0b\u62c9\u6846\u663e\u793a\u8be5text\uff1b<\/li>\n\n<li>\u7b2c\u4e8c\u6b65\u5339\u914d\uff1a\u82e5\u7b2c\u4e00\u6b65\u672a\u5339\u914d\u5230\uff0c\u83b7\u53d6\u5b57\u4f53fullName\uff0c\u518d\u6839\u636efullName\u5339\u914d\u5b57\u4f53\u6620\u5c04\u8868\u4e2d\u7684id\u5bf9\u5e94\u7684text\uff1b<\/li>\n\n<li>\u4e0b\u62c9\u6846\u56de\u663e\uff1a\u5c06\u5339\u914d\u5230\u7684text\u8bbe\u7f6e\u4e3a\u4e0b\u62c9\u6846\u9009\u4e2d\u9879\uff1b\u82e5\u5747\u672a\u5339\u914d\uff0c\u53ef\u663e\u793a\u9ed8\u8ba4\u5b57\u4f53\uff08\u5982Noto Sans\uff09\u3002<\/li>\n<\/ol>\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-dbd5213 e-flex e-con-boxed e-con e-parent\" data-id=\"dbd5213\" 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-8b29958 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"8b29958\" 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>\u4e00\u3001\u529f\u80fd\u80cc\u666f \u5ba2\u6237\u5728\u4f7f\u7528 WebSDK 11.0.6 \u7248\u672c\u65f6\uff0c\u5e0c\u671b\u81ea\u5b9a\u4e49\u6ce8\u91ca\u5c5e\u6027\u4e2d\u6ce8\u91ca\u6846\u7684\u5b57\u4f53\u9009\u62e9\u4e0b\u62c9\u6846\u754c\u9762\uff0c [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[807,595,334],"class_list":["post-8083","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-freetext","tag-websdk","tag-334"],"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\/8083","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=8083"}],"version-history":[{"count":13,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8083\/revisions"}],"predecessor-version":[{"id":8104,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8083\/revisions\/8104"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}