{"id":8193,"date":"2026-04-01T11:10:59","date_gmt":"2026-04-01T03:10:59","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=8193"},"modified":"2026-05-07T13:56:38","modified_gmt":"2026-05-07T05:56:38","slug":"%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%8f%8c%e5%87%bb%e9%a1%b5%e9%9d%a2%e4%b8%8a%e7%9a%84%e6%b3%a8%e9%87%8a%e6%97%b6%e4%b8%8d%e5%b1%95%e5%bc%80%e5%86%85%e7%bd%ae%e4%be%a7%e8%be%b9%e6%a0%8f%e7%9a%84","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=8193","title":{"rendered":"\u5982\u4f55\u5b9e\u73b0\u53cc\u51fb\u9875\u9762\u4e0a\u7684\u6ce8\u91ca\u65f6\u4e0d\u5c55\u5f00\u5185\u7f6e\u4fa7\u8fb9\u680f\u7684\u6ce8\u91ca\u5217\u8868\uff1f"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"8193\" class=\"elementor elementor-8193\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-10f55440 e-flex e-con-boxed e-con e-parent\" data-id=\"10f55440\" 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-55731dbb elementor-widget elementor-widget-text-editor\" data-id=\"55731dbb\" 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>\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728 PDF Web SDK\uff08Web PDF Viewer\uff09\u4e2d\uff0c\u901a\u8fc7 JavaScript \u81ea\u5b9a\u4e49\u6ce8\u91ca\u7ec4\u4ef6\u884c\u4e3a\uff0c\u5b9e\u73b0\u53cc\u51fb\u9875\u9762\u6ce8\u91ca\u65f6\u4e0d\u89e6\u53d1\u5185\u7f6e\u4fa7\u8fb9\u680f\u6ce8\u91ca\u5217\u8868\uff08\u8bc4\u8bba\u9762\u677f\uff09\u7684\u5c55\u5f00\uff0c\u9002\u7528\u4e8e\u524d\u7aef PDF \u6ce8\u91ca\u4ea4\u4e92\u63a7\u5236\u573a\u666f\u3002<\/p>\n\n<p class=\"wp-block-heading\"><strong>\u4e00\u3001\u529f\u80fd\u8bf4\u660e<\/strong><\/p>\n\n<p>\u5728\u9ed8\u8ba4\u7684 PDF Web Viewer \u4e2d\uff0c\u5f53\u7528\u6237\u53cc\u51fb\u9875\u9762\u4e0a\u7684\u6ce8\u91ca\u65f6\uff0c\u901a\u5e38\u4f1a\u81ea\u52a8\u6253\u5f00\u4fa7\u8fb9\u680f\u7684\u6ce8\u91ca\u5217\u8868\uff08\u8bc4\u8bba\u9762\u677f\uff09\uff0c\u7528\u4e8e\u5c55\u793a\u6216\u7f16\u8f91\u6279\u6ce8\u5185\u5bb9\u3002<\/p>\n\n<p>\u4f46\u5728\u67d0\u4e9b\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u4f8b\u5982\u81ea\u5b9a\u4e49\u5ba1\u9605\u6d41\u7a0b\u6216\u7b80\u5316\u4ea4\u4e92\u4f53\u9a8c\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u7981\u7528\u8be5\u9ed8\u8ba4\u884c\u4e3a\uff0c\u5373<strong>\u53cc\u51fb\u6ce8\u91ca\u65f6\u4e0d\u5c55\u5f00\u4fa7\u8fb9\u680f<\/strong>\u3002<\/p>\n\n<p>\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u57fa\u4e8e PDF Web SDK\uff0c\u901a\u8fc7 JavaScript \u81ea\u5b9a\u4e49\u6ce8\u91ca\u7ec4\u4ef6\uff0c\u5b9e\u73b0\u8be5\u884c\u4e3a\u63a7\u5236\u3002<\/p>\n\n<p class=\"wp-block-heading\"><strong>\u4e8c\u3001\u5b9e\u73b0\u601d\u8def<\/strong><\/p>\n\n<p>\u5b9e\u73b0\u8be5\u529f\u80fd\u7684\u6838\u5fc3\u65b9\u5f0f\u662f\uff1a<\/p>\n\n<ol class=\"wp-block-list\">\n<li>\u83b7\u53d6 AnnotManager\uff08\u6ce8\u91ca\u7ba1\u7406\u5668\uff09<\/li>\n\n<li>\u901a\u8fc7registerMatchRule\u6ce8\u518c\u81ea\u5b9a\u4e49\u89c4\u5219<\/li>\n\n<li>\u7ee7\u627f\u9ed8\u8ba4 AnnotComponent<\/li>\n\n<li>\u91cd\u5199showReplyDialog\u65b9\u6cd5<\/li>\n\n<li>\u8fd4\u56defalse\uff0c\u963b\u6b62\u9ed8\u8ba4\u4fa7\u8fb9\u680f\u5f39\u51fa\u903b\u8f91<\/li>\n<\/ol>\n\n<p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n\n<pre class=\"wp-block-code\"><code>\/\/\u53cc\u51fb\u6ce8\u91ca\u4e0d\u5c55\u5f00\u5de6\u4fa7\u4fa7\u8fb9\u680f\u7684\u6ce8\u91ca\u5217\u8868\uff1a\npdfui.getPDFViewer().then(function (pdfViewer) {\n  return pdfViewer.getAnnotManager();\n}).then(function (annotManager) {\n  annotManager.registerMatchRule(function (annot, AnnotComponent) {\n    return class CustomRule extends AnnotComponent {\n      constructor (annot, eUi, eHandler, AnnotComponent) {\n        super(annot, eUi, eHandler, AnnotComponent);\n      }\n      showReplyDialog(){\n\t    return false\n      }\n    }\n  })\n})<\/code><\/pre>\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-e1f1477 e-flex e-con-boxed e-con e-parent\" data-id=\"e1f1477\" 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-798364c elementor-align-center elementor-widget elementor-widget-button\" data-id=\"798364c\" 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=\"#\">\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>\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u5728 PDF Web SDK\uff08Web PDF Viewer\uff09\u4e2d\uff0c\u901a\u8fc7 JavaScript \u81ea\u5b9a\u4e49\u6ce8 [&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":[212,1365,1363,1364,1264,597],"class_list":["post-8193","post","type-post","status-publish","format-standard","hentry","category-websdk","tag-javascript","tag-pdf-viewer","tag-pdf-web-sdk","tag-pdf-","tag-1264","tag-597"],"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\/8193","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=8193"}],"version-history":[{"count":12,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8193\/revisions"}],"predecessor-version":[{"id":8519,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/8193\/revisions\/8519"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}