{"id":7765,"date":"2026-01-21T18:16:07","date_gmt":"2026-01-21T10:16:07","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=7765"},"modified":"2026-03-19T16:42:21","modified_gmt":"2026-03-19T08:42:21","slug":"web-sdk-11-%e7%89%88%e6%9c%ac%e8%8e%b7%e5%8f%96%e6%9c%ac%e6%9c%ba%e5%ad%97%e4%bd%93%e5%bc%b9%e7%aa%97%e7%9b%b8%e5%85%b3%e6%93%8d%e4%bd%9c%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=7765","title":{"rendered":"Web SDK 11 \u7248\u672c\u83b7\u53d6\u672c\u673a\u5b57\u4f53\u5f39\u7a97\u76f8\u5173\u64cd\u4f5c\u6307\u5357"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"7765\" class=\"elementor elementor-7765\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1caea99c e-flex e-con-boxed e-con e-parent\" data-id=\"1caea99c\" 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-754d8f86 elementor-widget elementor-widget-text-editor\" data-id=\"754d8f86\" 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\u95ee\u9898\u80cc\u666f<\/h2>\n\n\n\n<p>\u5728\u4f7f\u7528 PDF SDK 11 \u7248\u672c\u65f6\uff0c\u82e5\u9700\u83b7\u53d6\u672c\u673a\u5b57\u4f53\uff0c\u4f1a\u89e6\u53d1\u6743\u9650\u5f39\u7a97\u63d0\u793a\u3002\u672c\u6587\u6863\u8be6\u7ec6\u8bf4\u660e\u89e6\u53d1\u5f39\u7a97\u7684\u914d\u7f6e\u6b65\u9aa4\uff0c\u4ee5\u53ca\u8df3\u8fc7\u5f39\u7a97\u76f4\u63a5\u83b7\u53d6\u5b57\u4f53\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/devdocs.fuxinsoft.cn\/development-guide\/pdf-sdk-web\/kb\/font\/access-local-fonts\">https:\/\/devdocs.fuxinsoft.cn\/development-guide\/pdf-sdk-web\/kb\/font\/access-local-fonts<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u663e\u793a\u83b7\u53d6\u672c\u673a\u5b57\u4f53\u5f39\u7a97\u7684\u914d\u7f6e\u6b65\u9aa4<\/h2>\n\n\n\n<p>\u82e5\u9700\u6b63\u5e38\u89e6\u53d1 \u201c\u83b7\u53d6\u672c\u673a\u5b57\u4f53\u201d \u6743\u9650\u5f39\u7a97\uff0c\u9700\u5b8c\u6210\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b65\u9aa4 1\uff1a\u8bbe\u7f6e\u8bbf\u95ee\u534f\u8bae\u4e3a HTTPS<\/h3>\n\n\n\n<p>PDF SDK 11 \u7248\u672c\u83b7\u53d6\u672c\u673a\u5b57\u4f53\u7684\u80fd\u529b\u4f9d\u8d56\u6d4f\u89c8\u5668\u7684\u5b89\u5168\u7b56\u7565\uff0c<strong>\u5fc5\u987b\u4f7f\u7528 HTTPS \u534f\u8bae<\/strong>\u8bbf\u95ee\u96c6\u6210 SDK \u7684\u9875\u9762\uff0cHTTP \u534f\u8bae\u4e0b\u65e0\u6cd5\u89e6\u53d1\u5f39\u7a97\u4e14\u65e0\u6cd5\u83b7\u53d6\u5b57\u4f53\u6743\u9650\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672c\u5730\u5f00\u53d1\u73af\u5883\u53ef\u914d\u7f6e HTTPS \u8bc1\u4e66\uff08\u5982\u4f7f\u7528 mkcert \u751f\u6210\u81ea\u7b7e\u540d\u8bc1\u4e66\uff09\uff1b<\/li>\n\n\n\n<li>\u751f\u4ea7\u73af\u5883\u9700\u90e8\u7f72\u6709\u6548\u7684 HTTPS \u8bc1\u4e66\uff08\u5982 Let&#8217;s Encrypt \u514d\u8d39\u8bc1\u4e66\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b65\u9aa4 2\uff1a\u914d\u7f6e Service-Worker-Allowed \u54cd\u5e94\u5934<\/h3>\n\n\n\n<p>Service Worker \u662f\u83b7\u53d6\u672c\u673a\u5b57\u4f53\u7684\u5fc5\u8981\u524d\u7f6e\u6761\u4ef6\uff0c\u9700\u6309\u4ee5\u4e0b\u6587\u6863\u914d\u7f6e<code>Service-Worker-Allowed<\/code>\u54cd\u5e94\u5934\uff1a<\/p>\n\n\n\n<p>\u53c2\u8003\u94fe\u63a5\uff1a<a href=\"https:\/\/devdocs.fuxinsoft.cn\/development-guide\/pdf-sdk-web\/kb\/integrate-service-workers.html#%E9%85%8D%E7%BD%AE-service-worker-allowed-%E5%93%8D%E5%BA%94%E5%A4%B4\">https:\/\/devdocs.fuxinsoft.cn\/development-guide\/pdf-sdk-web\/kb\/integrate-service-workers.html#%E9%85%8D%E7%BD%AE-service-worker-allowed-%E5%93%8D%E5%BA%94%E5%A4%B4<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6b65\u9aa4 3\uff1a\u4f7f\u7528\u6307\u5b9a\u6d4f\u89c8\u5668<\/h3>\n\n\n\n<p>\u4ec5\u652f\u6301\u4ee5\u4e0b\u6d4f\u89c8\u5668\u89e6\u53d1\u672c\u673a\u5b57\u4f53\u6743\u9650\u5f39\u7a97\uff0c\u5176\u4ed6\u6d4f\u89c8\u5668\u6682\u4e0d\u652f\u6301\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Google Chrome\uff1b<\/li>\n\n\n\n<li>Microsoft Edge\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u8df3\u8fc7\u5f39\u7a97\u76f4\u63a5\u83b7\u53d6\u5b57\u4f53\u7684\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u82e5\u5e0c\u671b\u4e0d\u5f39\u51fa\u6743\u9650\u63d0\u793a\uff0c\u76f4\u63a5\u6388\u4e88\u5b57\u4f53\u83b7\u53d6\u6743\u9650\uff0c\u53ef\u5728<code>pdfui<\/code>\u521d\u59cb\u5316\u5b8c\u6210\u540e\uff0c\u7acb\u5373\u8c03\u7528\u4ee5\u4e0b API\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801\u793a\u4f8b<\/h3>\n\n\n\n<p>javascript<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u521d\u59cb\u5316pdfui\uff08\u793a\u4f8b\u4ee3\u7801\uff0c\u9700\u66ff\u6362\u4e3a\u5b9e\u9645\u521d\u59cb\u5316\u903b\u8f91\uff09\nconst pdfui = new PDFUI({\n  \/\/ \u521d\u59cb\u5316\u914d\u7f6e\u9879\n});\n\n\/\/ \u521d\u59cb\u5316\u5b8c\u6210\u540e\u8c03\u7528\u6743\u9650\u6388\u4e88\u63a5\u53e3\npdfui.grantQueryLocalFontsPermission(\"granted\");\/\/\u4e0d\u5f39\u6846\uff0c\u76f4\u63a5\u83b7\u53d6\u5b57\u4f53\n\/\/pdfui.grantQueryLocalFontsPermission(\"denied\");\/\/\u4e0d\u5f39\u6846\uff0c\u4e5f\u4e0d\u83b7\u53d6\u5b57\u4f53<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u63a5\u53e3\u8bf4\u660e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u63a5\u53e3\u540d\u79f0\uff1a<code>grantQueryLocalFontsPermission<\/code>\uff1b<\/li>\n\n\n\n<li>\u53c2\u6570\u503c\uff1a\u56fa\u5b9a\u4f20\u5165<code>\"granted\"<\/code>\uff0c\u8868\u793a\u76f4\u63a5\u6388\u4e88\u672c\u673a\u5b57\u4f53\u67e5\u8be2\u6743\u9650\uff1b<\/li>\n\n\n\n<li>\u8c03\u7528\u65f6\u673a\uff1a\u5fc5\u987b\u5728<code>pdfui<\/code>\u521d\u59cb\u5316\u5b8c\u6210\u540e\u8c03\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u6ce8\u610f\u4e8b\u9879<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8be5\u65b9\u6cd5\u4ec5\u5728\u5df2\u5b8c\u6210\u4e0a\u8ff0 HTTPS \u548c Service Worker \u914d\u7f6e\u7684\u524d\u63d0\u4e0b\u751f\u6548\uff1b<\/li>\n\n\n\n<li>\u82e5\u6d4f\u89c8\u5668\u9996\u6b21\u8bbf\u95ee\u65f6\u672a\u6388\u4e88\u8fc7\u6743\u9650\uff0c\u90e8\u5206\u6d4f\u89c8\u5668\u4ecd\u53ef\u80fd\u89e6\u53d1\u4e00\u6b21\u5f39\u7a97\uff08\u540e\u7eed\u8bbf\u95ee\u4e0d\u518d\u5f39\u51fa\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u914d\u7f6e\u5b8c\u6210\u540e\u4ecd\u4e0d\u5f39\u6846\uff1f\n<ul class=\"wp-block-list\">\n<li>\u68c0\u67e5\u534f\u8bae\u662f\u5426\u4e3a HTTPS\uff08\u672c\u5730<a href=\"https:\/\/localhost\" target=\"_blank\" rel=\"noreferrer noopener\">localhost<\/a>\u9664\u5916\uff09\uff1b<\/li>\n\n\n\n<li>\u786e\u8ba4 Service-Worker-Allowed \u54cd\u5e94\u5934\u914d\u7f6e\u6b63\u786e\uff1b<\/li>\n\n\n\n<li>\u9a8c\u8bc1\u6d4f\u89c8\u5668\u7248\u672c\u662f\u5426\u7b26\u5408\u8981\u6c42\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u8c03\u7528<code>grantQueryLocalFontsPermission<\/code>\u65e0\u6548\u679c\uff1f\n<ul class=\"wp-block-list\">\n<li>\u68c0\u67e5\u8c03\u7528\u65f6\u673a\u662f\u5426\u5728<code>pdfui<\/code>\u521d\u59cb\u5316\u5b8c\u6210\u540e\uff1b<\/li>\n\n\n\n<li>\u786e\u8ba4\u53c2\u6570\u662f\u5426\u4e3a\u5c0f\u5199\u7684<code>\"granted\"<\/code>\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09\u3002<\/li>\n<\/ul>\n<\/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-b809fc1 e-flex e-con-boxed e-con e-parent\" data-id=\"b809fc1\" 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-87c41f4 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"87c41f4\" 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\u95ee\u9898\u80cc\u666f \u5728\u4f7f\u7528 PDF SDK 11 \u7248\u672c\u65f6\uff0c\u82e5\u9700\u83b7\u53d6\u672c\u673a\u5b57\u4f53\uff0c\u4f1a\u89e6\u53d1\u6743\u9650\u5f39\u7a97\u63d0\u793a\u3002\u672c\u6587\u6863\u8be6\u7ec6\u8bf4\u660e\u89e6\u53d1\u5f39 [&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":[595,1295],"class_list":["post-7765","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-websdk","tag-1295"],"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\/7765","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=7765"}],"version-history":[{"count":4,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7765\/revisions"}],"predecessor-version":[{"id":8136,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7765\/revisions\/8136"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}