1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2970],{6903:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var r=n(1176),o=n(4848);function s(){return(0,o.jsx)(r.A.Google,{style:{display:"block",textAlign:"center"},layout:"in-article",format:"fluid",client:"ca-pub-7015533392136941",slot:"7527831842"})}},4515:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>l,default:()=>u,frontMatter:()=>i,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"guides/pdf","title":"\u7ffb\u8bd1 PDF \u6587\u4ef6","description":"\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u91cc\u6253\u5f00 PDF \u6587\u4ef6\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u7528\u5b83\u81ea\u5e26\u7684\u9605\u8bfb\u5668\u6253\u5f00\uff0c\u4f46\u662f\u8fd9\u4e2a\u9605\u8bfb\u5668\u53d7\u5230\u6d4f\u89c8\u5668\u7684\u5b89\u5168\u9650\u5236\uff0c\u6240\u4ee5\u5212\u8bcd\u7ffb\u8bd1\u5728\u6d4f\u89c8\u5668\u81ea\u5e26\u7684 PDF \u9605\u8bfb\u5668\u91cc\u53ea\u80fd\u7528\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528\uff1a","source":"@site/docs/guides/pdf.mdx","sourceDirName":"guides","slug":"/guides/pdf","permalink":"/docs/guides/pdf","draft":false,"unlisted":false,"editUrl":"/docs/edit-note?docs%2Fguides%2Fpdf.mdx","tags":[],"version":"current","lastUpdatedAt":1762083386000,"frontMatter":{},"sidebar":"guidesSidebar","previous":{"title":"\u7ffb\u8bd1\u6d4f\u89c8\u5668\u5916\u7684\u5185\u5bb9","permalink":"/docs/guides/extra"},"next":{"title":"\u8bed\u97f3\uff08\u9ea6\u514b\u98ce\uff09\u7ffb\u8bd1","permalink":"/docs/guides/microphone"}}');var o=n(4848),s=n(8453);n(6903);const i={},l="\u7ffb\u8bd1 PDF \u6587\u4ef6",a={},d=[{value:"\u5982\u4f55\u6253\u5f00\u5185\u7f6e PDF \u9605\u8bfb\u5668",id:"how",level:2},{value:"\u5e38\u89c1\u95ee\u9898",id:"faq",level:2},{value:"\u65e0\u6cd5\u81ea\u52a8\u6253\u5f00\u7535\u8111\u91cc\u7684 PDF \u6587\u4ef6",id:"auto",level:3},{value:"\u6807\u6ce8\u529f\u80fd",id:"mark",level:3},{value:"\u7f51\u9875\u5168\u6587\u7ffb\u8bd1\u529f\u80fd\u65e0\u6548",id:"page",level:3},{value:"\u5212\u9009\u7684\u6587\u672c\u7f3a\u5c11\u7a7a\u767d\u3001\u6362\u884c\u7b26",id:"br",level:3}];function c(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"\u7ffb\u8bd1-pdf-\u6587\u4ef6",children:"\u7ffb\u8bd1 PDF \u6587\u4ef6"})}),"\n",(0,o.jsx)(t.p,{children:"\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u91cc\u6253\u5f00 PDF \u6587\u4ef6\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u7528\u5b83\u81ea\u5e26\u7684\u9605\u8bfb\u5668\u6253\u5f00\uff0c\u4f46\u662f\u8fd9\u4e2a\u9605\u8bfb\u5668\u53d7\u5230\u6d4f\u89c8\u5668\u7684\u5b89\u5168\u9650\u5236\uff0c\u6240\u4ee5\u5212\u8bcd\u7ffb\u8bd1\u5728\u6d4f\u89c8\u5668\u81ea\u5e26\u7684 PDF \u9605\u8bfb\u5668\u91cc\u53ea\u80fd\u7528\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528\uff1a"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u5212\u8bcd\u540e\u6253\u5f00\u53f3\u952e\u83dc\u5355\uff0c\u5e76\u9009\u62e9\u3010\u7ffb\u8bd1\u8fd9\u6bb5\u6587\u672c\u3011"}),"\n",(0,o.jsxs)(t.li,{children:["\u5212\u8bcd\u540e\u5c06\u6587\u672c\u590d\u5236\u8fdb\u526a\u5207\u677f\uff0c\u7136\u540e\u4f7f\u7528\u5feb\u6377\u952e\u6253\u5f00",(0,o.jsx)(t.a,{href:"/docs/guides/standalone",children:"\u72ec\u7acb\u7ffb\u8bd1\u7a97\u53e3"}),"\u3002"]}),"\n"]}),"\n",(0,o.jsxs)(t.p,{children:["\u5982\u679c\u4f60\u5e0c\u671b\u80fd\u50cf\u666e\u901a\u7f51\u9875\u90a3\u6837\u4f7f\u7528",(0,o.jsx)(t.a,{href:"/docs/guides/cross",children:"\u5212\u8bcd"}),"\u3001",(0,o.jsx)(t.a,{href:"/docs/guides/screenshot",children:"\u622a\u56fe"}),"\u7ffb\u8bd1\u7b49\u529f\u80fd\uff0c\u90a3\u4e48\u4f60\u9700\u8981\u5728\u5212\u8bcd\u7ffb\u8bd1\u7684\u5185\u7f6e PDF \u9605\u8bfb\u5668\u91cc\u6253\u5f00 PDF\u3002"]}),"\n",(0,o.jsx)(t.p,{children:"\u4f46\u662f\uff0c\u5185\u7f6e PDF \u9605\u8bfb\u5668\u4e5f\u6709\u4e00\u4e9b\u95ee\u9898\uff0c\u5177\u4f53\u95ee\u9898\u53ef\u4ee5\u770b\u540e\u9762\u7684\u5e38\u89c1\u95ee\u9898\u3002"}),"\n",(0,o.jsx)(t.h2,{id:"how",children:"\u5982\u4f55\u6253\u5f00\u5185\u7f6e PDF \u9605\u8bfb\u5668"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u9f20\u6807\u53f3\u952e\u70b9\u51fb\u4e00\u4e2a\u6307\u5411 PDF \u6587\u4ef6\u7684\u94fe\u63a5\uff0c\u9009\u62e9\u3010\u5212\u8bcd\u7ffb\u8bd1\u3011>\u3010\u5728\u5212\u8bcd\u7ffb\u8bd1\u4e2d\u6253\u5f00\u6b64 PDF\u3011\u3002"}),"\n",(0,o.jsxs)(t.li,{children:["\u6253\u5f00",(0,o.jsx)(t.a,{href:"/docs/guides/popup",children:"\u6269\u5c55\u6309\u94ae\u5f39\u51fa\u9875"}),"\uff0c\u70b9\u51fb\u3010\u5185\u7f6e PDF \u9605\u8bfb\u5668\u3011\u6309\u94ae\u3002"]}),"\n",(0,o.jsx)(t.li,{children:"\u5982\u679c\u7f51\u9875\u4e2d\u5305\u542b PDF \u6587\u4ef6\uff0c\u90a3\u4e48\u5212\u8bcd\u7ffb\u8bd1\u4f1a\u5728\u53f3\u4e0b\u89d2\u63d0\u793a\u4f60\u6b64\u7f51\u9875\u4e2d\u7684 PDF \u6587\u4ef6\u7f51\u5740\uff0c\u70b9\u51fb\u7f51\u5740\u5373\u53ef\u5728\u5185\u7f6e PDF \u9605\u8bfb\u5668\u4e2d\u6253\u5f00\u5bf9\u5e94\u7684 PDF \u6587\u4ef6\u3002\uff08v8.6.0 \u8d77\u624d\u6709\u6b64\u529f\u80fd\uff09"}),"\n",(0,o.jsxs)(t.li,{children:["\u5728",(0,o.jsx)(t.a,{href:"/docs/guides/options",children:"\u5212\u8bcd\u7ffb\u8bd1\u8bbe\u7f6e\u9875"}),"\u5f00\u542f\u3010\u81ea\u52a8\u6253\u5f00 PDF\u3011\u9009\u9879\u540e\uff0c\u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u4e00\u4e2a PDF \u6587\u4ef6\u65f6\uff0c\u4f1a\u81ea\u52a8\u8df3\u8f6c\u5230\u5212\u8bcd\u7ffb\u8bd1\u7684\u5185\u7f6e PDF \u9605\u8bfb\u5668\u3002v8.6.3 \u53ca\u4e4b\u524d\u7684\u7248\u672c\u662f\u9ed8\u8ba4\u5f00\u542f\u4e86\u8fd9\u4e2a\u9009\u9879\u7684\u3002"]}),"\n",(0,o.jsx)(t.li,{children:"\u53f3\u952e\u5355\u51fb\u6d4f\u89c8\u5668\u5730\u5740\u680f\u53f3\u4fa7\u7684\u5212\u8bcd\u7ffb\u8bd1\u6269\u5c55\u6309\u94ae\uff0c\u70b9\u51fb\u3010\u5185\u7f6e PDF \u9605\u8bfb\u5668\u3011\u83dc\u5355\u9879\u3002\uff08v.9.5.0 \u8d77\u624d\u6709\u6b64\u83dc\u5355\u9879\uff09"}),"\n",(0,o.jsx)(t.li,{children:"\u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u4e00\u4e2a PDF \u6587\u4ef6\u65f6\uff0c\u6d4f\u89c8\u5668\u4f1a\u4f7f\u7528\u5b83\u539f\u751f\u7684 PDF \u9605\u8bfb\u5668\u6253\u5f00\uff0c~~\u6b64\u65f6\u53ef\u4ee5\u9f20\u6807\u53f3\u952e\u5355\u51fb\u4efb\u610f\u4f4d\u7f6e\uff0c\u9009\u62e9\u3010\u5728\u5212\u8bcd\u7ffb\u8bd1\u4e2d\u6253\u5f00\u6b64 PDF\u3011~~\u81ea v9.5.0 \u8d77\uff0c\u5df2\u5220\u9664\u6b64\u83dc\u5355\u9879\u3002"}),"\n"]}),"\n",(0,o.jsxs)(t.p,{children:["\u6d4b\u8bd5\u94fe\u63a5\uff1a",(0,o.jsx)(t.a,{href:"https://arxiv.org/pdf/2104.13030.pdf",children:"https://arxiv.org/pdf/2104.13030.pdf"})]}),"\n",(0,o.jsx)(t.admonition,{type:"note",children:(0,o.jsxs)(t.p,{children:["\u5982\u679c\u4f60\u662f\u5c06\u7535\u8111\u91cc\u7684 PDF \u6587\u4ef6\u62d6\u653e\u8fdb\u4e86\u6d4f\u89c8\u5668\uff0c\u90a3\u4e48\u4f60\u9700\u8981",(0,o.jsx)(t.a,{href:"/docs/faqs/file-url",children:"\u5141\u8bb8\u5212\u8bcd\u7ffb\u8bd1\u8bbf\u95ee\u6587\u4ef6\u7f51\u5740"}),"\u624d\u80fd\u770b\u5230\u63d0\u793a\u6216\u81ea\u52a8\u8df3\u8f6c\u5230\u5185\u7f6e PDF \u9605\u8bfb\u5668\u3002"]})}),"\n",(0,o.jsx)(t.h2,{id:"faq",children:"\u5e38\u89c1\u95ee\u9898"}),"\n",(0,o.jsx)(t.h3,{id:"auto",children:"\u65e0\u6cd5\u81ea\u52a8\u6253\u5f00\u7535\u8111\u91cc\u7684 PDF \u6587\u4ef6"}),"\n",(0,o.jsxs)(t.p,{children:["\u5982\u679c\u4f60\u52fe\u9009\u4e86\u3010\u81ea\u52a8\u6253\u5f00 PDF\u3011\u9009\u9879\u540e\uff0c\u5c06\u7535\u8111\u91cc\u7684 PDF \u6587\u4ef6\u62d6\u653e\u8fdb\u6d4f\u89c8\u5668\u540e\u6253\u5f00\u7684\u4ecd\u7136\u662f\u6d4f\u89c8\u5668\u81ea\u5e26\u7684 PDF \u9605\u8bfb\u5668\uff0c\u90a3\u4e48\u4f60\u9700\u8981",(0,o.jsx)(t.a,{href:"/docs/faqs/file-url",children:"\u5141\u8bb8\u5212\u8bcd\u7ffb\u8bd1\u8bbf\u95ee\u672c\u5730\u7f51\u5740"}),"\u3002"]}),"\n",(0,o.jsx)(t.h3,{id:"mark",children:"\u6807\u6ce8\u529f\u80fd"}),"\n",(0,o.jsx)(t.p,{children:"\u5c06\u5212\u8bcd\u7ffb\u8bd1\u5347\u7ea7\u81f3 v9.1.0 \u53ca\u4ee5\u4e0a\u7248\u672c\u5373\u53ef\u3002"}),"\n",(0,o.jsxs)(t.p,{children:["\u53e6\u5916\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u81ea\u5e26\u6216\u7b2c\u4e09\u65b9 PDF \u9605\u8bfb\u5668\u4e2d\u4f7f\u7528\u5212\u8bcd\u7ffb\u8bd1\uff0c\u5177\u4f53\u65b9\u5f0f\u89c1",(0,o.jsx)(t.a,{href:"/docs/guides/extra",children:"\u7ffb\u8bd1\u6d4f\u89c8\u5668\u5916\u7684\u5185\u5bb9"}),"\u3002"]}),"\n",(0,o.jsx)(t.h3,{id:"page",children:"\u7f51\u9875\u5168\u6587\u7ffb\u8bd1\u529f\u80fd\u65e0\u6548"}),"\n",(0,o.jsx)(t.p,{children:"\u7531\u4e8e PDF \u6587\u4ef6\u7684\u7ed3\u6784\u6bd4\u8f83\u7279\u6b8a\uff0c\u6240\u4ee5\u7f51\u9875\u5168\u6587\u7ffb\u8bd1\u5728\u5185\u7f6e PDF \u9605\u8bfb\u5668\u91cc\u786e\u5b9e\u662f\u65e0\u6548\u7684\u3002"}),"\n",(0,o.jsx)(t.h3,{id:"br",children:"\u5212\u9009\u7684\u6587\u672c\u7f3a\u5c11\u7a7a\u767d\u3001\u6362\u884c\u7b26"}),"\n",(0,o.jsxs)(t.p,{children:["\u8fd9\u4e2a\u95ee\u9898\u77ed\u671f\u5185\u65e0\u6cd5\u4fee\u590d\uff0c\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u65f6\uff0c\u8bf7\u4f7f\u7528",(0,o.jsx)(t.a,{href:"/docs/guides/screenshot",children:"\u622a\u56fe\u7ffb\u8bd1"}),"\u3002"]}),"\n",(0,o.jsxs)(n,{children:[(0,o.jsx)("summary",{children:"\u4e3a\u4ec0\u4e48\u4e0
1d\u4fee\u590d\u8fd9\u4e2a\u95ee\u9898\uff1f"}),(0,o.jsxs)(t.p,{children:["\u5212\u8bcd\u7ffb\u8bd1\u7684\u5185\u7f6e PDF \u9605\u8bfb\u5668\u4f7f\u7528\u7684\u662f\u7b2c\u4e09\u65b9\u7684 ",(0,o.jsx)(t.a,{href:"https://mozilla.github.io/pdf.js/",children:"PDF.js"}),"\uff0c\u8fd9\u4e2a\u95ee\u9898 PDF.js \u4e00\u76f4\u6ca1\u6709\u4fee\u590d\uff0c\u800c\u7531\u6211\u81ea\u5df1\u6765\u4fee\u590d\u7684\u8bdd\u5c31\u4f1a\u6709\u4ee5\u4e0b\u4e24\u4e2a\u95ee\u9898\uff1a"]}),(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u96be\u5ea6\u5f88\u5927\uff0c\u53ef\u80fd\u4f1a\u8017\u8d39\u5927\u91cf\u65f6\u95f4\u800c\u4e14\u4e0d\u80fd\u6210\u529f\u4fee\u590d\u3002"}),"\n",(0,o.jsx)(t.li,{children:"\u5373\u4f7f\u6211\u80fd\u4fee\u590d\u8fd9\u4e2a\u95ee\u9898\uff0c\u90a3\u4ee5\u540e\u5347\u7ea7 PDF.js \u7684\u7248\u672c\u65f6\u6211\u5c31\u5f97\u59cb\u7ec8\u786e\u4fdd\u6211\u7684\u4fee\u590d\u4ee3\u7801\u8ddf\u5b83\u4eec\u7684\u65b0\u7248\u672c\u662f\u517c\u5bb9\u7684\u3002"}),"\n"]}),(0,o.jsx)(t.p,{children:"\u7efc\u5408\u6765\u770b\uff0c\u76f4\u63a5\u7528\u622a\u56fe\u7ffb\u8bd1\u7684\u5f62\u5f0f\u66f4\u7b80\u5355\u4fbf\u6377\u3002"})]})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},2115:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(6540),i=(r=s)&&r.__esModule?r:{default:r};var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){return i.default.createElement("div",{className:"adsbybaidu"},"TODO")}}]),t}(i.default.Component);t.default=l},8265:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=i(n(6540)),s=i(n(5556));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})}},{key:"render",value:function(){return o.default.createElement("ins",{className:this.props.className+" adsbygoogle",style:this.props.style,"data-ad-client":this.props.client,"data-ad-slot":this.props.slot,"data-ad-layout":this.props.layout,"data-ad-layout-key":this.props.layoutKey,"data-ad-format":this.props.format,"data-full-width-responsive":this.props.responsive})}}]),t}(o.default.Component);t.default=l,l.propTypes={className:s.default.string,style:s.default.object,client:s.default.string.isRequired,slot:s.default.string.isRequired,layout:s.default.string,layoutKey:s.default.string,format:s.default.string,responsive:s.default.string},l.defaultProps={className:"",style:{display:"block"},format:"auto",layout:"",layoutKey:"",responsive:"false"}},1176:(e,t,n)=>{var r=s(n(8265)),o=s(n(2115));
1function s(e){return e&&e.__esModule?e:{default:e}}var i={Google:r.default,Baidu:o.default};t.A=i},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>l});var r=n(6540);const o={},s=r.createContext(o);function i(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.