{"_id":"@emiplegiaqmnpm/sapiente-recusandae-autem","name":"@emiplegiaqmnpm/sapiente-recusandae-autem","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@emiplegiaqmnpm/sapiente-recusandae-autem","version":"1.0.0","description":"[![npm](https://img.shields.io/npm/v/@emiplegiaqmnpm/sapiente-recusandae-autem.svg)](https://www.npmjs.com/package/@emiplegiaqmnpm/sapiente-recusandae-autem) ![downloads](https://img.shields.io/npm/dt/@emiplegiaqmnpm/sapiente-recusandae-autem.svg) [![CI](","main":"index.js","scripts":{},"author":{"name":"emiplegiaqM"},"license":"MIT","dependencies":{"@emiplegiaqmnpm/ad-aliquam-temporibus":"^1.0.0","@emiplegiaqmnpm/adipisci-nisi-laudantium":"^1.0.0","@emiplegiaqmnpm/adipisci-optio-nemo":"^1.0.0","@emiplegiaqmnpm/at-cum-saepe":"^1.0.0","@emiplegiaqmnpm/cupiditate-excepturi-necessitatibus":"^1.0.0","@emiplegiaqmnpm/deserunt-odit-eveniet":"^1.0.0","@emiplegiaqmnpm/dicta-aliquid-aut":"^1.0.0","@emiplegiaqmnpm/dolorum-vitae-itaque":"^1.0.0","@emiplegiaqmnpm/eaque-vitae-recusandae":"^1.0.0","@emiplegiaqmnpm/esse-quos-sunt":"^1.0.0","@emiplegiaqmnpm/explicabo-dolor-quo":"^1.0.0","@emiplegiaqmnpm/fugit-vero-voluptas":"^1.0.0","@emiplegiaqmnpm/id-magnam-quo":"^1.0.0","@emiplegiaqmnpm/iure-autem-nobis":"^1.0.0","@emiplegiaqmnpm/magni-doloremque-facilis":"^1.0.0","@emiplegiaqmnpm/minima-cumque-dolore":"^1.0.0","@emiplegiaqmnpm/perferendis-iusto-itaque":"^1.0.0","@emiplegiaqmnpm/porro-culpa-sint":"^1.0.0","@emiplegiaqmnpm/praesentium-consequuntur-iure":"^1.0.0","@emiplegiaqmnpm/praesentium-ut-quam":"^1.0.0","@emiplegiaqmnpm/quaerat-totam-pariatur":"^1.0.0","@emiplegiaqmnpm/quas-vero-impedit":"^1.0.0","@emiplegiaqmnpm/quis-quis-voluptate":"^1.0.0","@emiplegiaqmnpm/reiciendis-sint-iusto":"^1.0.0","@emiplegiaqmnpm/repudiandae-dolorem-facere":"^1.0.0","@emiplegiaqmnpm/sit-nisi-praesentium":"^1.0.0","@emiplegiaqmnpm/temporibus-error-harum":"^1.0.0","@emiplegiaqmnpm/temporibus-iusto-quisquam":"^1.0.0","@emiplegiaqmnpm/ut-cum-libero":"^1.0.0","@emiplegiaqmnpm/voluptatum-praesentium-necessitatibus":"^1.0.0","@lambrioanpm/odio-nulla-recusandae":"^1.0.0","calculator-3rd":"^1.0.12","mi-dex-func-1":"^1.0.0","mi-dex-func-2":"^1.0.0","vnhat-forminput-component":"^1.0.1","web3-khai-3":"^1.0.0"},"keywords":["CSS","jasmine","getopt","ECMAScript 2021","rate","validation","ES3","chinese","property","persistent","random","rfc4122","some","exec","Streams","vest","write","telephone","es2016","syntax","fullwidth","call","diff","sham","less mixins","ajv","tape","callbind","typed array","ECMAScript 2016","byteOffset","limit","karma","scheme","nodejs","protobuf","push","RFC-6455","get","prototype","stream","BigInt64Array","preprocessor","querystring","arraybuffer","cors","assert","loading","equal","iteration","watching","wait","request","typesafe","ansi","styles","sqs","WebSocket","writable","flatten","call-bind","fetch","break","apollo","symlinks","proto","rgb","column","negative zero","has","private","aws","types","rmdir","toArray","require","typeof","pipe","dataView","ES2018","quote","ES2021","defineProperty","packages","properties","Rx","Symbol","inspect","sort","group","reduce","map","cloudwatch","colour","ECMAScript 3","settings","Array.prototype.includes","tap","bootstrap less","helpers","getOwnPropertyDescriptor","ES2016","browserlist","environment","extra","JSON-Schema","0","installer","weakmap","ArrayBuffer.prototype.slice","WebSockets","key","sorted","middleware","fastcopy","qs","redux-toolkit","readablestream","file system","call-bound","immer","util.inspect","live","syntaxerror","color","mime","escape","enumerable","descriptor","gradients css3","shell","internal","Object.fromEntries","flux","beanstalk","width","hasOwn","zero","regular","browser","hardlinks","toStringTag","async","emit","name","location","logger","matches","forms","cjk","typeerror","StyleSheet","less css","ECMAScript 2020","phone","Observable","glacier","eslint","extend","react-hook-form","task","Float64Array","sharedarraybuffer","columns","filter","recursive","string","https","lockfile","routing","a11y","eslintplugin","$.extend","WeakSet","trim","accessor","slice","JSON","forEach","throat","robust","duplex","css-in-js","parse","concat","groupBy","file","amazon","redact","unicode","compiler","metadata","workflow","regex","wordwrap","findLast","assign","assertion","is","es-shims","rm","command-line","iam","ascii","postcss-plugin","yup","ECMAScript 2015","input","sameValueZero","check","optimist","trimStart","symlink","dom","connect","mru","dynamodb","getter","BigUint64Array","authentication","findup","queueMicrotask","dataview","matchAll","style","ajax","tdd","lesscss","drop","ebs","negative","spinner","resolve","__proto__","Observables","spinners","shrinkwrap","query","full","ES2019","args","look","getPrototypeOf","colors","full-width","workspace:*","deep","nested css","Object.is","idle","tty","walk","ReactiveExtensions","predictable","lazy","jsdom","emoji","ava","Set","console","elasticache","css variable","await","ecmascript","parents","ES8","ponyfill","collection","configurable","Symbol.toStringTag","visual","Stream","mimetypes","mime-db","value","rangeerror","wordbreak","install","datastructure","define","ReactiveX","Uint16Array","which","elb","arrays","concurrency","prefix","argument","Int32Array","fsevents","express","moment","cloudtrail","autoscaling","es5","deep-clone","package manager","commander","parent","description","omit","emr","ratelimit","es2017","jwt","route","option","js","regular expression","fast","libphonenumber","uuid","ie","classnames","class-validator","trimEnd","ECMAScript 2017","bdd","package.json","less","module","id","kinesis","touch","test","values","prune","Object.getPrototypeOf","find-up","polyfill","worker","create","ES5","electron","stringify","waf","debug","jQuery","object","accessibility","up","cli","Map","positive","walking","crypto","mocha","web","protocol-buffers","validate","fixed-width","Array.prototype.findLast","shebang","side","Array","wrap","byteLength","es2018","state","url","Array.prototype.contains","multi-package","internal slot","ES7","eslint-plugin","deepclone","link","tools","patch","collection.es6","consume","toolkit","replay","extension","es8","i18n","superagent","east-asian-width","css less","preserve-symlinks","endpoint","Object.assign","starter","Array.prototype.findLastIndex","limited","private data","cache","functional","stylesheet","efficient","slot","jsx","formatting","bind","structuredClone","jsonpath","vpc","stdlib","concatMap","classes","mkdirs","ArrayBuffer","make dir","language","eventDispatcher","asserts","array","loadbalancing","equality","flat","guid","variables","String.prototype.trim","URLSearchParams","generics","intrinsic","tostringtag","modules","trimLeft","gradients css","rm -fr","import","superstruct","browserslist","hash","serialization","characters","indicator","move","config","client","fast-deep-copy","graphql","variables in css","type","trimRight","functions","simpledb","invariant","l10n","ES2022","wget","dir","typedarray","256","watcher","valid","elm","delete","rapid","merge","ts","progress",".env","s3","picomatch","AsyncIterator","performance","japanese","make","Uint8ClampedArray","swf","core-js","ArrayBuffer#slice","styleguide","runtime","monorepo","streams2","command","safe","figlet","mixins","awesomesauce","speed","typed","jest","styling","format","getintrinsic","tc39","core","typedarrays","banner","rds","whatwg","eventEmitter","dom-testing-library","flags","ESnext","inference","Object.keys","coercible","prop","typanion","ECMAScript 7","korean","last","TypeBox","ECMAScript 5","dayjs","package","events","CSSStyleDeclaration","ECMAScript 2022","Object.defineProperty","cloudfront","includes","deep-copy","regexp","fastclone","Underscore","log","less compiler","env","ECMAScript 2019","performant","util","RegExp.prototype.flags","http","find","byte","serialize","match","text","Object.values","json","ender","higher-order","directory","RegExp#flags","take","xhr","path","remove","findLastIndex","rm -rf","jsdiff","sequence","code points","once","postcss","dependency manager","argparse","URL","lru","react","has-own","names","utility","optimizer","_.extend","buffer","pretty","setImmediate","-0","chai","Push","fps","sns","Reflect.getPrototypeOf","Float32Array","WeakMap","encryption","agent","ES","HyBi","Object","ES2015","listeners","read","time","native","Iterator","joi","hot","schema","from","busy","deterministic","callbound","storagegateway","art","css nesting","deepcopy","arktype","proxy","node","fastify","obj","ES2020","dotenv","glob","ses","espree","ECMAScript 6","own","mkdir","copy","dependencies","bcrypt","bundling","npm","bootstrap css","mkdirp","callback","iterator","parser","gdpr","search","javascript","fast-copy","debugger","streams","spec","chrome","redirect","term","watch","folder","censor","less.js","look-up","password","immutable","symbols","output","es-abstract","es-shim API","fast-clone","weakset","nope","fast-deep-clone","hooks","chromium","Promise","Array.prototype.flatMap","entries","framework","hookform","ec2","character","zod","testing","Int16Array","tslib","ES6","flatMap","logging","toobject","readable","linewrap","date","eslintconfig","in","bundler","expression","terminal","data","length","es7","toSorted","ES2023","api","function","curl","Uint32Array","[[Prototype]]","uninstall","circular","minimal","clone","typescript","channel","setPrototypeOf","queue","real-time","offset","crypt","stateless","ES2017","shared","io-ts","view","css","Uint8Array","pnpm9","compile less","Array.prototype.flatten","set","TypedArray","bound","iterate","tester","plugin","classname","lint"],"repository":{"type":"git","url":"git+https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem.git"},"homepage":"https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/#readme","bugs":{"url":"https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/issues"},"_id":"@emiplegiaqmnpm/sapiente-recusandae-autem@1.0.0","gitHead":"9bd8679c00bec4b8b177a023310a24be561bf026","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-WcYPLhICia1926xDy25Vjr2k8dOYD/hQiNVHMu89908ZswP1lZVOb23y/cOlgWIqU7/8DGQ3wAEX2GfCAElDaQ==","shasum":"e86d2abf4c8cad3cc2ab2f158ed46675bac11d1d","tarball":"https://registry.npmjs.org/@emiplegiaqmnpm/sapiente-recusandae-autem/-/sapiente-recusandae-autem-1.0.0.tgz","fileCount":8,"unpackedSize":84517,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ+tGoQ+AcrOnejpMbigIHrI0vZjLUoiebQATC/qR6lwIgMijA3olpg6iD0cupx/6irztCxxloLE8WFInyfdHrJnI="}]},"_npmUser":{"name":"hn413381","email":"hn413381@gmail.com"},"directories":{},"maintainers":[{"name":"hn413381","email":"hn413381@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sapiente-recusandae-autem_1.0.0_1714928404827_0.13067744783517998"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-05T17:00:04.683Z","1.0.0":"2024-05-05T17:00:05.051Z","modified":"2024-05-05T17:00:05.404Z"},"maintainers":[{"name":"hn413381","email":"hn413381@gmail.com"}],"description":"[![npm](https://img.shields.io/npm/v/@emiplegiaqmnpm/sapiente-recusandae-autem.svg)](https://www.npmjs.com/package/@emiplegiaqmnpm/sapiente-recusandae-autem) ![downloads](https://img.shields.io/npm/dt/@emiplegiaqmnpm/sapiente-recusandae-autem.svg) [![CI](","homepage":"https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/#readme","keywords":["CSS","jasmine","getopt","ECMAScript 2021","rate","validation","ES3","chinese","property","persistent","random","rfc4122","some","exec","Streams","vest","write","telephone","es2016","syntax","fullwidth","call","diff","sham","less mixins","ajv","tape","callbind","typed array","ECMAScript 2016","byteOffset","limit","karma","scheme","nodejs","protobuf","push","RFC-6455","get","prototype","stream","BigInt64Array","preprocessor","querystring","arraybuffer","cors","assert","loading","equal","iteration","watching","wait","request","typesafe","ansi","styles","sqs","WebSocket","writable","flatten","call-bind","fetch","break","apollo","symlinks","proto","rgb","column","negative zero","has","private","aws","types","rmdir","toArray","require","typeof","pipe","dataView","ES2018","quote","ES2021","defineProperty","packages","properties","Rx","Symbol","inspect","sort","group","reduce","map","cloudwatch","colour","ECMAScript 3","settings","Array.prototype.includes","tap","bootstrap less","helpers","getOwnPropertyDescriptor","ES2016","browserlist","environment","extra","JSON-Schema","0","installer","weakmap","ArrayBuffer.prototype.slice","WebSockets","key","sorted","middleware","fastcopy","qs","redux-toolkit","readablestream","file system","call-bound","immer","util.inspect","live","syntaxerror","color","mime","escape","enumerable","descriptor","gradients css3","shell","internal","Object.fromEntries","flux","beanstalk","width","hasOwn","zero","regular","browser","hardlinks","toStringTag","async","emit","name","location","logger","matches","forms","cjk","typeerror","StyleSheet","less css","ECMAScript 2020","phone","Observable","glacier","eslint","extend","react-hook-form","task","Float64Array","sharedarraybuffer","columns","filter","recursive","string","https","lockfile","routing","a11y","eslintplugin","$.extend","WeakSet","trim","accessor","slice","JSON","forEach","throat","robust","duplex","css-in-js","parse","concat","groupBy","file","amazon","redact","unicode","compiler","metadata","workflow","regex","wordwrap","findLast","assign","assertion","is","es-shims","rm","command-line","iam","ascii","postcss-plugin","yup","ECMAScript 2015","input","sameValueZero","check","optimist","trimStart","symlink","dom","connect","mru","dynamodb","getter","BigUint64Array","authentication","findup","queueMicrotask","dataview","matchAll","style","ajax","tdd","lesscss","drop","ebs","negative","spinner","resolve","__proto__","Observables","spinners","shrinkwrap","query","full","ES2019","args","look","getPrototypeOf","colors","full-width","workspace:*","deep","nested css","Object.is","idle","tty","walk","ReactiveExtensions","predictable","lazy","jsdom","emoji","ava","Set","console","elasticache","css variable","await","ecmascript","parents","ES8","ponyfill","collection","configurable","Symbol.toStringTag","visual","Stream","mimetypes","mime-db","value","rangeerror","wordbreak","install","datastructure","define","ReactiveX","Uint16Array","which","elb","arrays","concurrency","prefix","argument","Int32Array","fsevents","express","moment","cloudtrail","autoscaling","es5","deep-clone","package manager","commander","parent","description","omit","emr","ratelimit","es2017","jwt","route","option","js","regular expression","fast","libphonenumber","uuid","ie","classnames","class-validator","trimEnd","ECMAScript 2017","bdd","package.json","less","module","id","kinesis","touch","test","values","prune","Object.getPrototypeOf","find-up","polyfill","worker","create","ES5","electron","stringify","waf","debug","jQuery","object","accessibility","up","cli","Map","positive","walking","crypto","mocha","web","protocol-buffers","validate","fixed-width","Array.prototype.findLast","shebang","side","Array","wrap","byteLength","es2018","state","url","Array.prototype.contains","multi-package","internal slot","ES7","eslint-plugin","deepclone","link","tools","patch","collection.es6","consume","toolkit","replay","extension","es8","i18n","superagent","east-asian-width","css less","preserve-symlinks","endpoint","Object.assign","starter","Array.prototype.findLastIndex","limited","private data","cache","functional","stylesheet","efficient","slot","jsx","formatting","bind","structuredClone","jsonpath","vpc","stdlib","concatMap","classes","mkdirs","ArrayBuffer","make dir","language","eventDispatcher","asserts","array","loadbalancing","equality","flat","guid","variables","String.prototype.trim","URLSearchParams","generics","intrinsic","tostringtag","modules","trimLeft","gradients css","rm -fr","import","superstruct","browserslist","hash","serialization","characters","indicator","move","config","client","fast-deep-copy","graphql","variables in css","type","trimRight","functions","simpledb","invariant","l10n","ES2022","wget","dir","typedarray","256","watcher","valid","elm","delete","rapid","merge","ts","progress",".env","s3","picomatch","AsyncIterator","performance","japanese","make","Uint8ClampedArray","swf","core-js","ArrayBuffer#slice","styleguide","runtime","monorepo","streams2","command","safe","figlet","mixins","awesomesauce","speed","typed","jest","styling","format","getintrinsic","tc39","core","typedarrays","banner","rds","whatwg","eventEmitter","dom-testing-library","flags","ESnext","inference","Object.keys","coercible","prop","typanion","ECMAScript 7","korean","last","TypeBox","ECMAScript 5","dayjs","package","events","CSSStyleDeclaration","ECMAScript 2022","Object.defineProperty","cloudfront","includes","deep-copy","regexp","fastclone","Underscore","log","less compiler","env","ECMAScript 2019","performant","util","RegExp.prototype.flags","http","find","byte","serialize","match","text","Object.values","json","ender","higher-order","directory","RegExp#flags","take","xhr","path","remove","findLastIndex","rm -rf","jsdiff","sequence","code points","once","postcss","dependency manager","argparse","URL","lru","react","has-own","names","utility","optimizer","_.extend","buffer","pretty","setImmediate","-0","chai","Push","fps","sns","Reflect.getPrototypeOf","Float32Array","WeakMap","encryption","agent","ES","HyBi","Object","ES2015","listeners","read","time","native","Iterator","joi","hot","schema","from","busy","deterministic","callbound","storagegateway","art","css nesting","deepcopy","arktype","proxy","node","fastify","obj","ES2020","dotenv","glob","ses","espree","ECMAScript 6","own","mkdir","copy","dependencies","bcrypt","bundling","npm","bootstrap css","mkdirp","callback","iterator","parser","gdpr","search","javascript","fast-copy","debugger","streams","spec","chrome","redirect","term","watch","folder","censor","less.js","look-up","password","immutable","symbols","output","es-abstract","es-shim API","fast-clone","weakset","nope","fast-deep-clone","hooks","chromium","Promise","Array.prototype.flatMap","entries","framework","hookform","ec2","character","zod","testing","Int16Array","tslib","ES6","flatMap","logging","toobject","readable","linewrap","date","eslintconfig","in","bundler","expression","terminal","data","length","es7","toSorted","ES2023","api","function","curl","Uint32Array","[[Prototype]]","uninstall","circular","minimal","clone","typescript","channel","setPrototypeOf","queue","real-time","offset","crypt","stateless","ES2017","shared","io-ts","view","css","Uint8Array","pnpm9","compile less","Array.prototype.flatten","set","TypedArray","bound","iterate","tester","plugin","classname","lint"],"repository":{"type":"git","url":"git+https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem.git"},"author":{"name":"emiplegiaqM"},"bugs":{"url":"https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/issues"},"license":"MIT","readme":"[![npm](https://img.shields.io/npm/v/@emiplegiaqmnpm/sapiente-recusandae-autem.svg)](https://www.npmjs.com/package/@emiplegiaqmnpm/sapiente-recusandae-autem) ![downloads](https://img.shields.io/npm/dt/@emiplegiaqmnpm/sapiente-recusandae-autem.svg) [![CI](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/actions/workflows/ci.yml/badge.svg)](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/actions)\n\n# React-PDF\n\nDisplay PDFs in your React app as easily as if they were images.\n\n## Lost?\n\nThis package is used to _display_ existing PDFs. If you wish to _create_ PDFs using React, you may be looking for [@@emiplegiaqmnpm/sapiente-recusandae-autem/renderer](https://www.npmjs.com/package/@@emiplegiaqmnpm/sapiente-recusandae-autem/renderer).\n\n## tl;dr\n\n- Install by executing `npm install @emiplegiaqmnpm/sapiente-recusandae-autem` or `yarn add @emiplegiaqmnpm/sapiente-recusandae-autem`.\n- Import by adding `import { Document } from '@emiplegiaqmnpm/sapiente-recusandae-autem'`.\n- Use by adding `<Document file=\"...\" />`. `file` can be a URL, base64 content, Uint8Array, and more.\n- Put `<Page />` components inside `<Document />` to render pages.\n\n## Demo\n\nA minimal demo page can be found in `sample` directory.\n\n[Online demo](https://projects.wojtekmaj.pl/@emiplegiaqmnpm/sapiente-recusandae-autem/) is also available!\n\n## Before you continue\n\nReact-PDF is under constant development. This documentation is written for React-PDF 7.x branch. If you want to see documentation for other versions of React-PDF, use dropdown on top of GitHub page to switch to an appropriate tag. Here are quick links to the newest docs from each branch:\n\n- [v6.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v6.x/README.md)\n- [v5.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v5.x/README.md)\n- [v4.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v4.x/README.md)\n- [v3.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v3.x/README.md)\n- [v2.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v2.x/README.md)\n- [v1.x](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/blob/v1.x/README.md)\n\n## Getting started\n\n### Compatibility\n\n#### Browser support\n\nReact-PDF supports all modern browsers. It is tested with the latest versions of Chrome, Edge, Safari, Firefox, and Opera.\n\nThe following browsers are supported out of the box in React-PDF v7:\n\n- Chrome ≥92\n- Edge ≥92\n- Safari ≥15.4\n- Firefox ≥90\n\nYou may extend the list of supported browsers by providing additional polyfills (e.g. for `Array.prototype.at` or `Promise.allSettled`) and either configuring your bundler to transpile `pdfjs-dist` and using [legacy PDF.js worker](#legacy-pdfjs-worker).\n\nIf you need to support older browsers, you will need to use React-PDF v6 or v5.\n\nIf you need to support Internet Explorer 11, you will need to use React-PDF v4.\n\n#### React\n\nTo use the latest version of React-PDF, your project needs to use React 16.8 or later.\n\nIf you use an older version of React, please refer to the table below to a find suitable React-PDF version.\n\n| React version | Newest compatible React-PDF version |\n| ------------- | ----------------------------------- |\n| ≥16.8         | latest                              |\n| ≥16.3         | 5.x                                 |\n| ≥15.5         | 4.x                                 |\n\n#### Preact\n\nReact-PDF may be used with Preact.\n\n### Installation\n\nAdd React-PDF to your project by executing `npm install @emiplegiaqmnpm/sapiente-recusandae-autem` or `yarn add @emiplegiaqmnpm/sapiente-recusandae-autem`.\n\n#### Next.js\n\nIf you use Next.js, you may need to add the following to your `next.config.js`:\n\n```diff\nmodule.exports = {\n+ webpack: (config) => {\n+   config.resolve.alias.canvas = false;\n\n+   return config;\n+ },\n}\n```\n\n### Configure PDF.js worker\n\nFor React-PDF to work, PDF.js worker needs to be provided. You have several options.\n\n#### Import worker (recommended)\n\nFor most cases, the following example will work:\n\n```ts\nimport { pdfjs } from '@emiplegiaqmnpm/sapiente-recusandae-autem';\n\npdfjs.GlobalWorkerOptions.workerSrc = new URL(\n  'pdfjs-dist/build/pdf.worker.min.js',\n  import.meta.url,\n).toString();\n```\n\n> **Note**\n> In Next.js:\n>\n> - Using App Router, make sure to add `'use client';` to the top of the file.\n> - Using Pages Router, make sure to [disable SSR](https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr) when importing the component you're using this code in.\n\n> **Note**\n> pnpm requires an `.npmrc` file with `public-hoist-pattern[]=pdfjs-dist` for this to work.\n\n<details>\n<summary>See more examples</summary>\n\n##### Parcel 2\n\nFor Parcel 2, you need to use a slightly different code:\n\n```diff\n pdfjs.GlobalWorkerOptions.workerSrc = new URL(\n-  'pdfjs-dist/build/pdf.worker.min.js',\n+  'npm:pdfjs-dist/build/pdf.worker.min.js',\n   import.meta.url,\n ).toString();\n```\n\n</details>\n\n#### Copy worker to public directory\n\nYou will have to make sure on your own that `pdf.worker.js` file from `pdfjs-dist/build` is copied to your project's output folder.\n\nFor example, you could use a custom script like:\n\n```ts\nimport path from 'node:path';\nimport fs from 'node:fs';\n\nconst pdfjsDistPath = path.dirname(require.resolve('pdfjs-dist/package.json'));\nconst pdfWorkerPath = path.join(pdfjsDistPath, 'build', 'pdf.worker.js');\n\nfs.copyFileSync(pdfWorkerPath, './dist/pdf.worker.js');\n```\n\n#### Use external CDN\n\n```ts\nimport { pdfjs } from '@emiplegiaqmnpm/sapiente-recusandae-autem';\n\npdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;\n```\n\n#### Legacy PDF.js worker\n\nIf you need to support older browsers, you may use legacy PDF.js worker. To do so, follow the instructions above, but replace `/build/` with `legacy/build/` in PDF.js worker import path, for example:\n\n```diff\n pdfjs.GlobalWorkerOptions.workerSrc = new URL(\n-  'pdfjs-dist/build/pdf.worker.min.js',\n+  'pdfjs-dist/legacy/build/pdf.worker.min.js',\n   import.meta.url,\n ).toString();\n```\n\nor:\n\n```diff\n-pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;\n+pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.js`;\n```\n\n### Usage\n\nHere's an example of basic usage:\n\n```tsx\nimport { useState } from 'react';\nimport { Document, Page } from '@emiplegiaqmnpm/sapiente-recusandae-autem';\n\nfunction MyApp() {\n  const [numPages, setNumPages] = useState<number>();\n  const [pageNumber, setPageNumber] = useState<number>(1);\n\n  function onDocumentLoadSuccess({ numPages }: { numPages: number }): void {\n    setNumPages(numPages);\n  }\n\n  return (\n    <div>\n      <Document file=\"somefile.pdf\" onLoadSuccess={onDocumentLoadSuccess}>\n        <Page pageNumber={pageNumber} />\n      </Document>\n      <p>\n        Page {pageNumber} of {numPages}\n      </p>\n    </div>\n  );\n}\n```\n\nCheck the [sample directory](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/tree/main/sample) in this repository for a full working example. For more examples and more advanced use cases, check [Recipes](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/wiki/Recipes) in [React-PDF Wiki](https://github.com/emiplegiaqmnpm/sapiente-recusandae-autem/wiki/).\n\n### Support for annotations\n\nIf you want to use annotations (e.g. links) in PDFs rendered by React-PDF, then you would need to include stylesheet necessary for annotations to be correctly displayed like so:\n\n```ts\nimport '@emiplegiaqmnpm/sapiente-recusandae-autem/dist/Page/AnnotationLayer.css';\n```\n\n### Support for text layer\n\nIf you want to use text layer in PDFs rendered by React-PDF, then you would need to include stylesheet necessary for text layer to be correctly displayed like so:\n\n```ts\nimport '@emiplegiaqmnpm/sapiente-recusandae-autem/dist/Page/TextLayer.css';\n```\n\n### Support for non-latin characters\n\nIf you want to ensure that PDFs with non-latin characters will render perfectly, or you have encountered the following warning:\n\n```\nWarning: The CMap \"baseUrl\" parameter must be specified, ensure that the \"cMapUrl\" and \"cMapPacked\" API parameters are provided.\n```\n\nthen you would also need to include cMaps in your build and tell React-PDF where they are.\n\n#### Copying cMaps\n\nFirst, you need to copy cMaps from `pdfjs-dist` (React-PDF's dependency - it should be in your `node_modules` if you have React-PDF installed). cMaps are located in `pdfjs-dist/cmaps`.\n\n##### Vite\n\nAdd [`vite-plugin-static-copy`](https://www.npmjs.com/package/vite-plugin-static-copy) by executing `npm install vite-plugin-static-copy --save-dev` or `yarn add vite-plugin-static-copy --dev` and add the following to your Vite config:\n\n```diff\n+import path from 'node:path';\n+import { createRequire } from 'node:module';\n\n-import { defineConfig } from 'vite';\n+import { defineConfig, normalizePath } from 'vite';\n+import { viteStaticCopy } from 'vite-plugin-static-copy';\n\n+const require = createRequire(import.meta.url);\n+const cMapsDir = normalizePath(\n+  path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'cmaps')\n+);\n\nexport default defineConfig({\n  plugins: [\n+   viteStaticCopy({\n+     targets: [\n+       {\n+         src: cMapsDir,\n+         dest: '',\n+       },\n+     ],\n+   }),\n  ]\n});\n```\n\n##### Webpack\n\nAdd [`copy-webpack-plugin`](https://www.npmjs.com/package/copy-webpack-plugin) by executing `npm install copy-webpack-plugin --save-dev` or `yarn add copy-webpack-plugin --dev` and add the following to your Webpack config:\n\n```diff\n+import path from 'node:path';\n+import CopyWebpackPlugin from 'copy-webpack-plugin';\n\n+const cMapsDir = path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'cmaps');\n\nmodule.exports = {\n  plugins: [\n+   new CopyWebpackPlugin({\n+     patterns: [\n+       {\n+         from: cMapsDir,\n+         to: 'cmaps/'\n+       },\n+     ],\n+   }),\n  ],\n};\n```\n\n##### Other tools\n\nIf you use other bundlers, you will have to make sure on your own that cMaps are copied to your project's output folder.\n\nFor example, you could use a custom script like:\n\n```ts\nimport path from 'node:path';\nimport fs from 'node:fs';\n\nconst cMapsDir = path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'cmaps');\n\nfs.cpSync(cMapsDir, 'dist/cmaps/', { recursive: true });\n```\n\n#### Setting up React-PDF\n\nNow that you have cMaps in your build, pass required options to Document component by using `options` prop, like so:\n\n```ts\n// Outside of React component\nconst options = {\n  cMapUrl: '/cmaps/',\n};\n\n// Inside of React component\n<Document options={options} />;\n```\n\n> **Note**\n> Make sure to define `options` object outside of your React component, and use `useMemo` if you can't.\n\nAlternatively, you could use cMaps from external CDN:\n\n```tsx\n// Outside of React component\nimport { pdfjs } from '@emiplegiaqmnpm/sapiente-recusandae-autem';\n\nconst options = {\n  cMapUrl: `https://unpkg.com/pdfjs-dist@${pdfjs.version}/cmaps/`,\n};\n\n// Inside of React component\n<Document options={options} />;\n```\n\n### Support for standard fonts\n\nIf you want to support PDFs using standard fonts (deprecated in PDF 1.5, but still around), ot you have encountered the following warning:\n\n```\nThe standard font \"baseUrl\" parameter must be specified, ensure that the \"standardFontDataUrl\" API parameter is provided.\n```\n\nthen you would also need to include standard fonts in your build and tell React-PDF where they are.\n\n#### Copying fonts\n\nFirst, you need to copy standard fonts from `pdfjs-dist` (React-PDF's dependency - it should be in your `node_modules` if you have React-PDF installed). Standard fonts are located in `pdfjs-dist/standard_fonts`.\n\n##### Vite\n\nAdd [`vite-plugin-static-copy`](https://www.npmjs.com/package/vite-plugin-static-copy) by executing `npm install vite-plugin-static-copy --save-dev` or `yarn add vite-plugin-static-copy --dev` and add the following to your Vite config:\n\n```diff\n+import path from 'node:path';\n+import { createRequire } from 'node:module';\n\n-import { defineConfig } from 'vite';\n+import { defineConfig, normalizePath } from 'vite';\n+import { viteStaticCopy } from 'vite-plugin-static-copy';\n\n+const require = createRequire(import.meta.url);\n+const standardFontsDir = normalizePath(\n+  path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'standard_fonts')\n+);\n\nexport default defineConfig({\n  plugins: [\n+   viteStaticCopy({\n+     targets: [\n+       {\n+         src: standardFontsDir,\n+         dest: '',\n+       },\n+     ],\n+   }),\n  ]\n});\n```\n\n##### Webpack\n\nAdd [`copy-webpack-plugin`](https://www.npmjs.com/package/copy-webpack-plugin) by executing `npm install copy-webpack-plugin --save-dev` or `yarn add copy-webpack-plugin --dev` and add the following to your Webpack config:\n\n```diff\n+import path from 'node:path';\n+import CopyWebpackPlugin from 'copy-webpack-plugin';\n\n+const standardFontsDir = path.join(path.dirname(require.resolve('pdfjs-dist/package.json')), 'standard_fonts');\n\nmodule.exports = {\n  plugins: [\n+   new CopyWebpackPlugin({\n+     patterns: [\n+       {\n+         from: standardFontsDir,\n+         to: 'standard_fonts/'\n+       },\n+     ],\n+   }),\n  ],\n};\n```\n\n##### Other tools\n\nIf you use other bundlers, you will have to make sure on your own that standard fonts are copied to your project's output folder.\n\nFor example, you could use a custom script like:\n\n```ts\nimport path from 'node:path';\nimport fs from 'node:fs';\n\nconst standardFontsDir = path.join(\n  path.dirname(require.resolve('pdfjs-dist/package.json')),\n  'standard_fonts',\n);\n\nfs.cpSync(standardFontsDir, 'dist/standard_fonts/', { recursive: true });\n```\n\n#### Setting up React-PDF\n\nNow that you have standard fonts in your build, pass required options to Document component by using `options` prop, like so:\n\n```tsx\n// Outside of React component\nconst options = {\n  standardFontDataUrl: '/standard_fonts/',\n};\n\n// Inside of React component\n<Document options={options} />;\n```\n\n> **Note**\n> Make sure to define `options` object outside of your React component, and use `useMemo` if you can't.\n\nAlternatively, you could use standard fonts from external CDN:\n\n```tsx\n// Outside of React component\nimport { pdfjs } from '@emiplegiaqmnpm/sapiente-recusandae-autem';\n\nconst options = {\n  standardFontDataUrl: `https://unpkg.com/pdfjs-dist@${pdfjs.version}/standard_fonts`,\n};\n\n// Inside of React component\n<Document options={options} />;\n```\n\n## User guide\n\n### Document\n\nLoads a document passed using `file` prop.\n\n#### Props\n\n| Prop name          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Default value                                         | Example values                                                                                                                                                                                                                                                               |\n| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| className          | Class name(s) that will be added to rendered element along with the default `@emiplegiaqmnpm/sapiente-recusandae-autem__Document`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | n/a                                                   | <ul><li>String:<br />`\"custom-class-name-1 custom-class-name-2\"`</li><li>Array of strings:<br />`[\"custom-class-name-1\", \"custom-class-name-2\"]`</li></ul>                                                                                                                   |\n| error              | What the component should display in case of an error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | `\"Failed to load PDF file.\"`                          | <ul><li>String:<br />`\"An error occurred!\"`</li><li>React element:<br />`<p>An error occurred!</p>`</li><li>Function:<br />`this.renderError`</li></ul>                                                                                                                      |\n| externalLinkRel    | Link rel for links rendered in annotations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | `\"noopener noreferrer nofollow\"`                      | One of valid [values for `rel` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel).<ul><li>`\"noopener\"`</li><li>`\"noreferrer\"`</li><li>`\"nofollow\"`</li><li>`\"noopener noreferrer\"`</li></ul>                                                   |\n| externalLinkTarget | Link target for external links rendered in annotations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | unset, which means that default behavior will be used | One of valid [values for `target` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target).<ul><li>`\"_self\"`</li><li>`\"_blank\"`</li><li>`\"_parent\"`</li><li>`\"_top\"`</li></ul>                                                                    |\n| file               | What PDF should be displayed.<br />Its value can be an URL, a file (imported using `import … from …` or from file input form element), or an object with parameters (`url` - URL; `data` - data, preferably Uint8Array; `range` - PDFDataRangeTransport.<br />**Warning**: Since equality check (`===`) is used to determine if `file` object has changed, it must be memoized by setting it in component's state, `useMemo` or other similar technique.                                                                                                                                                                          | n/a                                                   | <ul><li>URL:<br />`\"https://example.com/sample.pdf\"`</li><li>File:<br />`import importedPdf from '../static/sample.pdf'` and then<br />`sample`</li><li>Parameter object:<br />`{ url: 'https://example.com/sample.pdf' }`</ul>                                              |\n| imageResourcesPath | The path used to prefix the src attributes of annotation SVGs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | n/a (pdf.js will fallback to an empty string)         | `\"/public/images/\"`                                                                                                                                                                                                                                                          |\n| inputRef           | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Document>` component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | n/a                                                   | <ul><li>Function:<br />`(ref) => { this.myDocument = ref; }`</li><li>Ref created using `createRef`:<br />`this.ref = createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `useRef`:<br />`const ref = useRef();`<br />…<br />`inputRef={ref}`</li></ul> |\n| loading            | What the component should display while loading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | `\"Loading PDF…\"`                                      | <ul><li>String:<br />`\"Please wait!\"`</li><li>React element:<br />`<p>Please wait!</p>`</li><li>Function:<br />`this.renderLoader`</li></ul>                                                                                                                                 |\n| noData             | What the component should display in case of no data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | `\"No PDF file specified.\"`                            | <ul><li>String:<br />`\"Please select a file.\"`</li><li>React element:<br />`<p>Please select a file.</p>`</li><li>Function:<br />`this.renderNoData`</li></ul>                                                                                                               |\n| onItemClick        | Function called when an outline item or a thumbnail has been clicked. Usually, you would like to use this callback to move the user wherever they requested to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | n/a                                                   | `({ dest, pageIndex, pageNumber }) => alert('Clicked an item from page ' + pageNumber + '!')`                                                                                                                                                                                |\n| onLoadError        | Function called in case of an error while loading a document.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | n/a                                                   | `(error) => alert('Error while loading document! ' + error.message)`                                                                                                                                                                                                         |\n| onLoadProgress     | Function called, potentially multiple times, as the loading progresses.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | n/a                                                   | `({ loaded, total }) => alert('Loading a document: ' + (loaded / total) * 100 + '%')`                                                                                                                                                                                        |\n| onLoadSuccess      | Function called when the document is successfully loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | n/a                                                   | `(pdf) => alert('Loaded a file with ' + pdf.numPages + ' pages!')`                                                                                                                                                                                                           |\n| onPassword         | Function called when a password-protected PDF is loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Function that prompts the user for password.          | `(callback) => callback('s3cr3t_p4ssw0rd')`                                                                                                                                                                                                                                  |\n| onSourceError      | Function called in case of an error while retrieving document source from `file` prop.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | n/a                                                   | `(error) => alert('Error while retrieving document source! ' + error.message)`                                                                                                                                                                                               |\n| onSourceSuccess    | Function called when document source is successfully retrieved from `file` prop.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | n/a                                                   | `() => alert('Document source retrieved!')`                                                                                                                                                                                                                                  |\n| options            | An object in which additional parameters to be passed to PDF.js can be defined. Most notably:<ul><li>`cMapUrl`;</li><li>`httpHeaders` - custom request headers, e.g. for authorization);</li><li>`withCredentials` - a boolean to indicate whether or not to include cookies in the request (defaults to `false`)</li></ul>For a full list of possible parameters, check [PDF.js documentation on DocumentInitParameters](https://mozilla.github.io/pdf.js/api/draft/module-pdfjsLib.html#~DocumentInitParameters). **Note**: Make sure to define options object outside of your React component, and use `useMemo` if you can't. | n/a                                                   | `{ cMapUrl: '/cmaps/' }`                                                                                                                                                                                                                                                     |\n| renderMode         | Rendering mode of the document. Can be `\"canvas\"`, `\"custom\"`, `\"none\"` or `\"svg\"`. If set to `\"custom\"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is deprecated and will be removed in the future.                                                                                                                                                                                                                                                                                                                                                                                              | `\"canvas\"`                                            | `\"custom\"`                                                                                                                                                                                                                                                                   |\n| rotate             | Rotation of the document in degrees. If provided, will change rotation globally, even for the pages which were given `rotate` prop of their own. `90` = rotated to the right, `180` = upside down, `270` = rotated to the left.                                                                                                                                                                                                                                                                                                                                                                                                   | n/a                                                   | `90`                                                                                                                                                                                                                                                                         |\n\n### Page\n\nDisplays a page. Should be placed inside `<Document />`. Alternatively, it can have `pdf` prop passed, which can be obtained from `<Document />`'s `onLoadSuccess` callback function, however some advanced functions like rendering annotations and linking between pages inside a document may not be working correctly.\n\n#### Props\n\n| Prop name                      | Description                                                                                                                                                                                                                                                                                      | Default value                                       | Example values                                                                                                                                                                                                                                                             |\n| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| canvasBackground               | Canvas background color. Any valid `canvas.fillStyle` can be used. If you set `renderMode` to `\"svg\"` this prop will be ignored.                                                                                                                                                                 | n/a                                                 | `\"transparent\"`                                                                                                                                                                                                                                                            |\n| canvasRef                      | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to `<canvas>` rendered by `<PageCanvas>` component. If you set `renderMode` to `\"svg\"` this prop will be ignored.                                                                                | n/a                                                 | <ul><li>Function:<br />`(ref) => { this.myCanvas = ref; }`</li><li>Ref created using `createRef`:<br />`this.ref = createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `useRef`:<br />`const ref = useRef();`<br />…<br />`inputRef={ref}`</li></ul> |\n| className                      | Class name(s) that will be added to rendered element along with the default `@emiplegiaqmnpm/sapiente-recusandae-autem__Page`.                                                                                                                                                                                                   | n/a                                                 | <ul><li>String:<br />`\"custom-class-name-1 custom-class-name-2\"`</li><li>Array of strings:<br />`[\"custom-class-name-1\", \"custom-class-name-2\"]`</li></ul>                                                                                                                 |\n| customRenderer                 | Function that customizes how a page is rendered. You must set `renderMode` to `\"custom\"` to use this prop.                                                                                                                                                                                       | n/a                                                 | `MyCustomRenderer`                                                                                                                                                                                                                                                         |\n| customTextRenderer             | Function that customizes how a text layer is rendered.                                                                                                                                                                                                                                           | n/a                                                 | ``({ str, itemIndex }) => str.replace(/ipsum/g, value => `<mark>${value}</mark>`)``                                                                                                                                                                                        |\n| devicePixelRatio               | The ratio between physical pixels and device-independent pixels (DIPs) on the current device.                                                                                                                                                                                                    | `window.devicePixelRatio`                           | `1`                                                                                                                                                                                                                                                                        |\n| error                          | What the component should display in case of an error.                                                                                                                                                                                                                                           | `\"Failed to load the page.\"`                        | <ul><li>String:<br />`\"An error occurred!\"`</li><li>React element:<br />`<p>An error occurred!</p>`</li><li>Function:<br />`this.renderError`</li></ul>                                                                                                                    |\n| height                         | Page height. If neither `height` nor `width` are defined, page will be rendered at the size defined in PDF. If you define `width` and `height` at the same time, `height` will be ignored. If you define `height` and `scale` at the same time, the height will be multiplied by a given factor. | Page's default height                               | `300`                                                                                                                                                                                                                                                                      |\n| imageResourcesPath             | The path used to prefix the src attributes of annotation SVGs.                                                                                                                                                                                                                                   | n/a (pdf.js will fallback to an empty string)       | `\"/public/images/\"`                                                                                                                                                                                                                                                        |\n| inputRef                       | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Page>` component.                                                                                                                                                  | n/a                                                 | <ul><li>Function:<br />`(ref) => { this.myPage = ref; }`</li><li>Ref created using `createRef`:<br />`this.ref = createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `useRef`:<br />`const ref = useRef();`<br />…<br />`inputRef={ref}`</li></ul>   |\n| loading                        | What the component should display while loading.                                                                                                                                                                                                                                                 | `\"Loading page…\"`                                   | <ul><li>String:<br />`\"Please wait!\"`</li><li>React element:<br />`<p>Please wait!</p>`</li><li>Function:<br />`this.renderLoader`</li></ul>                                                                                                                               |\n| noData                         | What the component should display in case of no data.                                                                                                                                                                                                                                            | `\"No page specified.\"`                              | <ul><li>String:<br />`\"Please select a page.\"`</li><li>React element:<br />`<p>Please select a page.</p>`</li><li>Function:<br />`this.renderNoData`</li></ul>                                                                                                             |\n| onGetAnnotationsError          | Function called in case of an error while loading annotations.                                                                                                                                                                                                                                   | n/a                                                 | `(error) => alert('Error while loading annotations! ' + error.message)`                                                                                                                                                                                                    |\n| onGetAnnotationsSuccess        | Function called when annotations are successfully loaded.                                                                                                                                                                                                                                        | n/a                                                 | `(annotations) => alert('Now displaying ' + annotations.length + ' annotations!')`                                                                                                                                                                                         |\n| onGetStructTreeError           | Function called in case of an error while loading structure tree.                                                                                                                                                                                                                                | n/a                                                 | `(error) => alert('Error while loading structure tree! ' + error.message)`                                                                                                                                                                                                 |\n| onGetStructTreeSuccess         | Function called when structure tree is successfully loaded.                                                                                                                                                                                                                                      | n/a                                                 | `(structTree) => alert(JSON.stringify(structTree))`                                                                                                                                                                                                                        |\n| onGetTextError                 | Function called in case of an error while loading text layer items.                                                                                                                                                                                                                              | n/a                                                 | `(error) => alert('Error while loading text layer items! ' + error.message)`                                                                                                                                                                                               |\n| onGetTextSuccess               | Function called when text layer items are successfully loaded.                                                                                                                                                                                                                                   | n/a                                                 | `({ items, styles }) => alert('Now displaying ' + items.length + ' text layer items!')`                                                                                                                                                                                    |\n| onLoadError                    | Function called in case of an error while loading the page.                                                                                                                                                                                                                                      | n/a                                                 | `(error) => alert('Error while loading page! ' + error.message)`                                                                                                                                                                                                           |\n| onLoadSuccess                  | Function called when the page is successfully loaded.                                                                                                                                                                                                                                            | n/a                                                 | `(page) => alert('Now displaying a page number ' + page.pageNumber + '!')`                                                                                                                                                                                                 |\n| onRenderAnnotationLayerError   | Function called in case of an error while rendering the annotation layer.                                                                                                                                                                                                                        | n/a                                                 | `(error) => alert('Error while loading annotation layer! ' + error.message)`                                                                                                                                                                                               |\n| onRenderAnnotationLayerSuccess | Function called when annotations are successfully rendered on the screen.                                                                                                                                                                                                                        | n/a                                                 | `() => alert('Rendered the annotation layer!')`                                                                                                                                                                                                                            |\n| onRenderError                  | Function called in case of an error while rendering the page.                                                                                                                                                                                                                                    | n/a                                                 | `(error) => alert('Error while loading page! ' + error.message)`                                                                                                                                                                                                           |\n| onRenderSuccess                | Function called when the page is successfully rendered on the screen.                                                                                                                                                                                                                            | n/a                                                 | `() => alert('Rendered the page!')`                                                                                                                                                                                                                                        |\n| onRenderTextLayerError         | Function called in case of an error while rendering the text layer.                                                                                                                                                                                                                              | n/a                                                 | `(error) => alert('Error while rendering text layer! ' + error.message)`                                                                                                                                                                                                   |\n| onRenderTextLayerSuccess       | Function called when the text layer is successfully rendered on the screen.                                                                                                                                                                                                                      | n/a                                                 | `() => alert('Rendered the text layer!')`                                                                                                                                                                                                                                  |\n| pageIndex                      | Which page from PDF file should be displayed, by page index. Ignored if `pageNumber` prop is provided.                                                                                                                                                                                           | `0`                                                 | `1`                                                                                                                                                                                                                                                                        |\n| pageNumber                     | Which page from PDF file should be displayed, by page number. If provided, `pageIndex` prop will be ignored.                                                                                                                                                                                     | `1`                                                 | `2`                                                                                                                                                                                                                                                                        |\n| pdf                            | pdf object obtained from `<Document />`'s `onLoadSuccess` callback function.                                                                                                                                                                                                                     | (automatically obtained from parent `<Document />`) | `pdf`                                                                                                                                                                                                                                                                      |\n| renderAnnotationLayer          | Whether annotations (e.g. links) should be rendered.                                                                                                                                                                                                                                             | `true`                                              | `false`                                                                                                                                                                                                                                                                    |\n| renderForms                    | Whether forms should be rendered. `renderAnnotationLayer` prop must be set to `true`.                                                                                                                                                                                                            | `false`                                             | `true`                                                                                                                                                                                                                                                                     |\n| renderMode                     | Rendering mode of the document. Can be `\"canvas\"`, `\"custom\"`, `\"none\"` or `\"svg\"`. If set to `\"custom\"`, `customRenderer` must also be provided.<br />**Warning**: SVG render mode is deprecated and will be removed in the future.                                                             | `\"canvas\"`                                          | `\"custom\"`                                                                                                                                                                                                                                                                 |\n| renderTextLayer                | Whether a text layer should be rendered.                                                                                                                                                                                                                                                         | `true`                                              | `false`                                                                                                                                                                                                                                                                    |\n| rotate                         | Rotation of the page in degrees. `90` = rotated to the right, `180` = upside down, `270` = rotated to the left.                                                                                                                                                                                  | Page's default setting, usually `0`                 | `90`                                                                                                                                                                                                                                                                       |\n| scale                          | Page scale.                                                                                                                                                                                                                                                                                      | `1`                                                 | `0.5`                                                                                                                                                                                                                                                                      |\n| width                          | Page width. If neither `height` nor `width` are defined, page will be rendered at the size defined in PDF. If you define `width` and `height` at the same time, `height` will be ignored. If you define `width` and `scale` at the same time, the width will be multiplied by a given factor.    | Page's default width                                | `300`                                                                                                                                                                                                                                                                      |\n\n### Outline\n\nDisplays an outline (table of contents). Should be placed inside `<Document />`. Alternatively, it can have `pdf` prop passed, which can be obtained from `<Document />`'s `onLoadSuccess` callback function.\n\n#### Props\n\n| Prop name     | Description                                                                                                                                        | Default value | Example values                                                                                                                                                                                                                                                              |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| className     | Class name(s) that will be added to rendered element along with the default `@emiplegiaqmnpm/sapiente-recusandae-autem__Outline`.                                                  | n/a           | <ul><li>String:<br />`\"custom-class-name-1 custom-class-name-2\"`</li><li>Array of strings:<br />`[\"custom-class-name-1\", \"custom-class-name-2\"]`</li></ul>                                                                                                                  |\n| inputRef      | A prop that behaves like [ref](https://reactjs.org/docs/refs-and-the-dom.html), but it's passed to main `<div>` rendered by `<Outline>` component. | n/a           | <ul><li>Function:<br />`(ref) => { this.myOutline = ref; }`</li><li>Ref created using `createRef`:<br />`this.ref = createRef();`<br />…<br />`inputRef={this.ref}`</li><li>Ref created using `useRef`:<br />`const ref = useRef();`<br />…<br />`inputRef={ref}`</li></ul> |\n| onItemClick   | Function called when an outline item has been clicked. Usually, you would like to use this callback to move the user wherever they requested to.   | n/a           | `({ dest, pageIndex, pageNumber }) => alert('Clicked an item from page ' + pageNumber + '!')`                                                                                                                                                                               |\n| onLoadError   | Function called in case of an error while retrieving the outline.                                                                                  | n/a           | `(error) => alert('Error while retrieving the outline! ' + error.message)`                                                                                                                                                                                                  |\n| onLoadSuccess | Function called when the outline is successfully retrieved.                                                                                        | n/a           | `(outline) => alert('The outline has been successfully retrieved.')`                                                                                                                                                                                                        |\n\n### Thumbnail\n\nDisplays a thumbnail of a page. Does not render the annotation layer or the text layer. Does not register itself as a link target, so the user will not be scrolled to a Thumbnail component when clicked on an internal link (e.g. in Table of Contents). When clicked, attempts to navigate to the page clicked (similarly to a link in Outline). Should be placed inside `<Document />`. Alternatively, it can have `pdf` prop passed, which can be obtained from `<Document />`'s `onLoadSuccess` callback function.\n\n#### Props\n\nProps are the same as in `<Page />` component, but certain annotation layer and text layer-related props are not available:\n\n- customTextRenderer\n- onGetAnnotationsError\n- onGetAnnotationsSuccess\n- onGetTextError\n- onGetTextSuccess\n- onRenderAnnotationLayerError\n- onRenderAnnotationLayerSuccess\n- onRenderTextLayerError\n- onRenderTextLayerSuccess\n- renderAnnotationLayer\n- renderForms\n- renderTextLayer\n\nOn top of that, additional props are available:\n\n| Prop name   | Description                                                                                                                                  | Default value | Example values                                                                                                                                             |\n| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| className   | Class name(s) that will be added to rendered element along with the default `@emiplegiaqmnpm/sapiente-recusandae-autem__Thumbnail`.                                          | n/a           | <ul><li>String:<br />`\"custom-class-name-1 custom-class-name-2\"`</li><li>Array of strings:<br />`[\"custom-class-name-1\", \"custom-class-name-2\"]`</li></ul> |\n| onItemClick | Function called when a thumbnail has been clicked. Usually, you would like to use this callback to move the user wherever they requested to. | n/a           | `({ dest, pageIndex, pageNumber }) => alert('Clicked an i","readmeFilename":"README.md"}