{"_id":"@dks9556/pdfjs-dist","_rev":"4-245489b9dbac53fbea5121f44b980ef9","name":"@dks9556/pdfjs-dist","dist-tags":{"latest":"2.0.946"},"versions":{"2.0.943":{"name":"@dks9556/pdfjs-dist","version":"2.0.943","description":"mirror of pdfjs-dist, bundled and exposed as ES module","author":{"name":"Rob Resendez","url":"resendez.java@gmail.com"},"main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git://github.com/bundled-es-modules/pdfjs-dist.git"},"license":"Apache-2.0","devDependencies":{"babel-core":"^6.26.3","core-js":"^2.5.7","pdfjs-dist":"2.0.943","rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0","semver":">=4.3.2"},"scripts":{"build":"rollup -c ./rollup.config.js"},"gitHead":"4ffba654f81ec5c4f24cdb1cba818adc5c5791a0","bugs":{"url":"https://github.com/bundled-es-modules/pdfjs-dist/issues"},"homepage":"https://github.com/bundled-es-modules/pdfjs-dist#readme","_id":"@dks9556/pdfjs-dist@2.0.943","_npmVersion":"6.4.1","_nodeVersion":"8.14.1","_npmUser":{"name":"dks9556","email":"daniel.serratore@evident.com"},"dist":{"integrity":"sha512-U9lfwXlyuqWYRNL9hGeiQsA8ErtVmbE241umSpmczVBxrvG34VMoMDAWh139+VGZyL7/9UsUleJOYxKRt5s1vA==","shasum":"26b7ad4e4bc750bd9823b09efa671be4e65da173","tarball":"https://registry.npmjs.org/@dks9556/pdfjs-dist/-/pdfjs-dist-2.0.943.tgz","fileCount":17,"unpackedSize":6476948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdX81CRA9TVsSAnZWagAAua0P/1hkUTIeedjL7mpiNg5V\nm4z5o4LrBkmQrfd4Savar1tZFI7mJhvouzXOyAmmF3j3pgDzZrhQdqqxdarB\nSBPB6MX25NN0wfP8A2IS0wEZ3hpCHiPK1tBQjJDmAbyXNWJv8ksA4F55X5Qi\nH2jaWblTAlsTSEHwHSdJ52x8nzJGlHPzVqBwvuYNhR5kGtI0rxCwi7jBxM8w\n2r2sCLVlhDLUsElbRk5bd9xYqruwzRdmbD9ViKDxP80FU9vIVKAP6fUYXay0\n04elYilxNzUVsBMblUAUBY4FphdOzTom5vFpBYSL76nGms3txgurACbfo/KL\nzkWtL0NrJao+MxFRZxPmgjsv+sWJuCY0feEFmHDJvzWao4NKZaYXXYaXmXTv\nVy9JbCX/4ukaWgWPDpI0DVO7qQHrQCFxqB4ZLyd3e4qZk/C7pUcSRzC95tSF\nWyB9uXS0VGp+QkqhlCxmYAAVdjb5EWX9ReoN0EQtXBIFHvlwFMsVU20jpIIE\nKoV5LoBQ3bUQnC03EicebxUek4TFlaflkM2EI6v24fHozvPnLD+UWLbb6NfR\nRD+aWFtNAO35WSVvTkIEQZGkfSpV3UbMegxKqb2It3bcp41HLNCl3AIuiLQm\nStVQvupnMswbtPN3vDSTwWGmdktILMtDahmjVrwF0tmhsSNqPAAsi/Tqmqoh\nunYC\r\n=K/FL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/uq3ASXkLxw0melevyAMMjDPCV6YJEeAKAGEuM8BavQIhAPSIUPuBad+effXob2ScjC2gbdaoQ86vqUo2cdFKsYb5"}]},"maintainers":[{"name":"dks9556","email":"daniel.serratore@evident.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdfjs-dist_2.0.943_1551204148519_0.23056363643326927"},"_hasShrinkwrap":false},"2.0.944":{"name":"@dks9556/pdfjs-dist","version":"2.0.944","description":"mirror of pdfjs-dist, bundled and exposed as ES module","author":{"name":"Rob Resendez","url":"resendez.java@gmail.com"},"main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git://github.com/bundled-es-modules/pdfjs-dist.git"},"license":"Apache-2.0","devDependencies":{"babel-core":"^6.26.3","core-js":"^2.5.7","pdfjs-dist":"2.0.943","rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0","semver":">=4.3.2"},"scripts":{"build":"rollup -c ./rollup.config.js"},"gitHead":"156104512634af681ed2b51432591bb906d8cbbd","bugs":{"url":"https://github.com/bundled-es-modules/pdfjs-dist/issues"},"homepage":"https://github.com/bundled-es-modules/pdfjs-dist#readme","_id":"@dks9556/pdfjs-dist@2.0.944","_npmVersion":"6.4.1","_nodeVersion":"8.14.1","_npmUser":{"name":"dks9556","email":"daniel.serratore@evident.com"},"dist":{"integrity":"sha512-W7zh/ztwS+CAvD8Qk0PGaXf324N961dxzAhyIR9qqVEzvuIFXVBP6crdf+FPTp7Z3FrHuKV0RDiAA61ZuVPEqg==","shasum":"25a52bc7bb46aae5298287c6e11aac648fa05403","tarball":"https://registry.npmjs.org/@dks9556/pdfjs-dist/-/pdfjs-dist-2.0.944.tgz","fileCount":17,"unpackedSize":6476928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdYUECRA9TVsSAnZWagAAI78P/ixMl41P1w9KxZma4pxQ\nz63UW0IS2i9ttGGG8gIjkH9CZ4ISMOvl866T+rh/BNpsCBvSh3Nc+ZtzXFf0\nNVV8xkO78+0cYD3BiRctxNTGaBUHQVZQAgsS5G40Ccl+PI0s5adsZy99fO2T\nPubAwo+q1eVwZ2Ruqf8qK6SjKI/U/CvLvqlzTvH9vVWY/xNLM8W8zHa1IeEv\nqCndhQEDf+9/m3O3dml/YGtCS7CPS9GEfyeGbnjtAZbapBeaI4GoqYT/Mcop\nvsKwy6e6k6uzbjFDAL8iwbtjfglb3qgGkF7TopjGZEQvhsPkkZQtlqS9N0Ji\nyCaHMRVUhGL0WgAXSOcF96ed/R3fA8pB7rUlZlZAmRc+znmnlbrjzqC9fYVq\nL3tR1iiRyWAuBn5OWhINdYsmgOq4GujoFBHlN6RIVsmJgtxUHenG4eCm58+x\nBt7yc54MsnduysQH541Xj7j7iksQJlfI0D3s7RxdAdGy24W3Ua/ZEx2JAO7i\n+Se19J2a7h2Y7bVh83st3fY0wpfA0JU7Lotmba+is4xcmqdpgKZDO0dClSoP\niFGYdKmxzikGpRyprOhm0hfMsmpbHu+aTNfRTT74dKvBrmpz7ByziWueyNkH\nfG+4lvufXqtAtZKiTI0BeqhydcJMig2ZqheeXhVMTI0iT5bx0V+BumjCJz1m\n8YrQ\r\n=SAAw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJuLx4y76QwMpev+GtcSGeBxjIRHaLcnZxTJ8muP3+6AIgck6feAllRlfLEfHQl5tjVj51gXoTTro+2gJRdibdbjk="}]},"maintainers":[{"name":"dks9556","email":"daniel.serratore@evident.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdfjs-dist_2.0.944_1551205635489_0.8448109235849086"},"_hasShrinkwrap":false},"2.0.945":{"name":"@dks9556/pdfjs-dist","version":"2.0.945","description":"mirror of pdfjs-dist, bundled and exposed as ES module","author":{"name":"Rob Resendez","url":"resendez.java@gmail.com"},"main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git://github.com/bundled-es-modules/pdfjs-dist.git"},"license":"Apache-2.0","devDependencies":{"babel-core":"^6.26.3","core-js":"^2.5.7","pdfjs-dist":"2.0.943","rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0","semver":">=4.3.2"},"scripts":{"build":"rollup -c ./rollup.config.js"},"dependencies":{"rollup-plugin-ignore":"^1.0.5","rollup-plugin-replace":"^2.1.0"},"gitHead":"d6a749d85828cfb32632490a1504b14814c92614","bugs":{"url":"https://github.com/bundled-es-modules/pdfjs-dist/issues"},"homepage":"https://github.com/bundled-es-modules/pdfjs-dist#readme","_id":"@dks9556/pdfjs-dist@2.0.945","_npmVersion":"6.4.1","_nodeVersion":"8.14.1","_npmUser":{"name":"dks9556","email":"daniel.serratore@evident.com"},"dist":{"integrity":"sha512-yuZWafp8zsM7uqOW0MGcQSCpU7ImECgFKpdRbL4To6whoLz/pFDrze3t0rdvl2Ml51fx/S6ZWZ27qfoE+lOqIg==","shasum":"b5b4cf1fb024580b8d70e2715b316d8e6ab6b380","tarball":"https://registry.npmjs.org/@dks9556/pdfjs-dist/-/pdfjs-dist-2.0.945.tgz","fileCount":19,"unpackedSize":6512571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcduomCRA9TVsSAnZWagAA2lkP/i/ZVN1+mbMVN5BWLrLr\nEDt5d7DfTEoo3eF4Kce+Zo6T7bX2kvRAH9kkUsMTdZDp7OIEL6OnkPk+wnfl\n3eSIQV742FaKW6pS7yPkC6PA8RbSfqXaRu9ImSThQV9lwAwUKKnIFT+pZ/YB\nytjwanF7nta4wG0/kfVFUONpRptqoy0YxfUhompGbXx3Okrf3zZqa2vy4C+F\n2LXtXp/rBMiry2GkCjvWpqo4TZ33fIVJ8Ygo0G0hc5eezTlHCoYWPOOnPfh1\nNS+y7yyh/WUho0EXxLog+M7W0OCQV1SQZsbPNXcCx2LzYpHjdvbho4nYuEDK\nHYkLD4FZLnfoBeliSB9/zlJHqxpLru/3eHJ4Uc/VWoq/vLn3IKCzqwxJDXaD\nwBg3k/tHKMT3+lEHWpwb8/x6zKqn3l2j+RtWRmiDRfiPTmFz2ZZa2cfjOYHb\nO+Ro6/IbPVGAR8GbePZjA/7MPqYncjakAFTzQpzduncdf3M+zlrF26r73ZV1\nYpaLrNjg2eyoCr1SORDg/5geQDlUJwdHLowxpzkmoCJ1JxSOa0XSUFQrGHM2\nUlysXgLnh2aJ5gMf+mT1cxTFAL6VtwH6UgWm3GyLP2ULRr/PLZ4W3qBVYo3j\nid1jTgoPlgvwcKiulh6dJWyCUpucPIDZqljy+cCpUMeR/MNc28gzuFrKkP41\nlu0m\r\n=vcEE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnnGaMiZ14UWOtOXkprYNq2ldvTV48frB9kdIheP7/4AiEArMx09teOz1aqXB3LZkC+tVmi5dE86DRkD2E9ZMLjtS4="}]},"maintainers":[{"name":"dks9556","email":"daniel.serratore@evident.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdfjs-dist_2.0.945_1551297061919_0.7964131372437471"},"_hasShrinkwrap":false},"2.0.946":{"name":"@dks9556/pdfjs-dist","version":"2.0.946","description":"mirror of pdfjs-dist, bundled and exposed as ES module","author":{"name":"Rob Resendez","url":"resendez.java@gmail.com"},"main":"index.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git://github.com/bundled-es-modules/pdfjs-dist.git"},"license":"Apache-2.0","devDependencies":{"babel-core":"^6.26.3","core-js":"^2.5.7","pdfjs-dist":"2.0.943","rollup":"^0.62.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-copy":"^0.2.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-ignore":"^1.0.5","rollup-plugin-replace":"^2.1.0","semver":">=4.3.2"},"scripts":{"build":"rollup -c ./rollup.config.js"},"gitHead":"ec954c576eee7432e1010f1ea7d738bb87b8bc67","bugs":{"url":"https://github.com/bundled-es-modules/pdfjs-dist/issues"},"homepage":"https://github.com/bundled-es-modules/pdfjs-dist#readme","_id":"@dks9556/pdfjs-dist@2.0.946","_npmVersion":"6.4.1","_nodeVersion":"8.14.1","_npmUser":{"name":"dks9556","email":"daniel.serratore@evident.com"},"dist":{"integrity":"sha512-EvVH1y6o61hB+uWdJfnU6OShp0Z5QW6BP7/MDfX0m19BcEN4osMPdpBt/a1esALDkrUYI9vqx2l93Ysmtbgdpg==","shasum":"9ba5c57694ac27f0718b878ac0364509862b1de2","tarball":"https://registry.npmjs.org/@dks9556/pdfjs-dist/-/pdfjs-dist-2.0.946.tgz","fileCount":18,"unpackedSize":6513246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcd/MqCRA9TVsSAnZWagAAn18QAIfhfKLhiDk0yshJW2va\n4n+PXQvnO+m3ROUO+AJ8nLXrN7YiW9i+cC2p16BiGNDejrIawE9f2fawqEl4\ny6wlaHm70Uw/DWIciTfyJi+P4QsJaGn0eeJqyub4ERXzF8y06q6fORn0Azez\nnPmFz97xMa7jpZgbvHgyIgDBSsUyn/kM2jQHmlf1tzWy2wTRul0zDB1U9D3U\nQBjOFH/rmw5F+vLp3hbX0yMr5z7clQmqJcXiyDWOUcesNGigManYU/8psLKD\nNNUr2z7FFRn5b276Hy4UukBHlWXRu9yqjKyed9eppEVqPZP7K6K7zSwLeE8I\nQUyrR1wdykq7IeP5zWAZqRMO8JflfjspM+AjaNMU7vBNXXFBX5v25pWhEYzn\nvmMho+B7AwXTQRSRyAL3neNYlX4Z9JuNCGItiU6QBBfwkhOq9QFYHC1Ss6Nm\njsMl6whwMQuuF/m3yGUbVaMDUeBNmuS3qFmw3RO95fWkNwCetNfOML12tXIa\npg7wmPvwKHWaR40j5wivEmSuiIl9PL51idQiTwNHCscnpLl2ZY+Fmn1mG4FI\nQzGl9r6KgjPr+1BereYtEOWkxxl6JyEkBF9d9TnVrf5WsTFlKDATeT/2uqOn\n5IR6djlqWWVNodW9YRzxghx29FNQsiyotpkxKwkhvxqB71E1ComM7hUxQ1gj\nu1dE\r\n=AeKQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClWz+79uWnr9h+3swtSWhrEp+ax57jYSNqSrbzlj+paQIgYdGBsuQm7dJrFe09o3N9CZIxrYt7u0+dcdM/cISkdBU="}]},"maintainers":[{"name":"dks9556","email":"daniel.serratore@evident.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pdfjs-dist_2.0.946_1551364906075_0.10996156253532852"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-26T18:02:28.343Z","2.0.943":"2019-02-26T18:02:28.689Z","modified":"2022-04-05T04:51:22.219Z","2.0.944":"2019-02-26T18:27:15.697Z","2.0.945":"2019-02-27T19:51:02.105Z","2.0.946":"2019-02-28T14:41:46.293Z"},"maintainers":[{"name":"dks9556","email":"daniel.serratore@evident.com"}],"description":"mirror of pdfjs-dist, bundled and exposed as ES module","homepage":"https://github.com/bundled-es-modules/pdfjs-dist#readme","repository":{"type":"git","url":"git://github.com/bundled-es-modules/pdfjs-dist.git"},"author":{"name":"Rob Resendez","url":"resendez.java@gmail.com"},"bugs":{"url":"https://github.com/bundled-es-modules/pdfjs-dist/issues"},"license":"Apache-2.0","readme":"# pdfjs-dist\n\nThis is a mirror of [pdfjs-dist](https://www.npmjs.com/package/pdfjs-dist), bundled and exposed as an ES module\n\n## Install\n\n```bash\nnpm install @bundled-es-modules/pdfjs-dist\n```\n\n## Use\n\n```js\nimport pdfjs from \"@bundled-es-modules/pdfjs-dist/build/pdf\";\nimport viewer from \"@bundled-es-modules/pdfjs-dist/web/pdf_viewer\";\n\npdfjs.GlobalWorkerOptions.workerSrc =\n  \"@bundled-es-modules/pdfjs-dist/pdf.worker.js\";\n\nvar url = \"basicapi.pdf\";\nvar loadingTask = pdfjs.getDocument(url);\n//...\n```\n\n**Important**: Unlike in the original build, the `pdfjs.GlobalWorkerOptions.workerSrc` is mandatory.\n\n# Overview\n\n### Structure\n\n```\n├── build/\n│   ├── pdf.js                    - display layer\n│   └── pdf.worker.js             - core layer\n└── web/\n    ├── pdf_viewer.js             - top-level viewer import, containing all necessary setup\n    ├── module.js                 - pdf-viewer module, transformed from UMD to ESM\n    └── util.js                   - utility module for setup\n```\n\n### Background\n\nPDFJS is a library by Mozilla, created to facillitate client-side rendering of PDF documents.\n\nCurrently, the primary build for this project is provided as UMD-style modules at [pdfjs/pdfjs-dist](https://github.com/mozilla/pdfjs-dist).\n\n_Support for es modules in the main project has been requested [here (#10317)](https://github.com/mozilla/pdf.js/issues/10317)_\n\n### Rollup configuration\n\n##### pdf.js\n\n- Transform UMD to ESM\n- Resolve commonJS imports, **except**:\n- Ignore `pdf.worker.js` import. This is very important, as it's conditionally required and is very large in size.\n- Copy over all remaining files we wish to provide.\n\nWith `pdf.worker.js` ignored, pdfjs will expect a link to the file externally (see above)\n\n##### pdf_viewer.js\n\n- Transform UMD to ESM\n- Resolve imports\n- Ignore `pdf.js`. This is important, as we don't want to serve duplicates of pdfjs.\n\nWith `pdf.js` ignored, the viewer will expect to find a global pdfjs. This is circumvented by temporarily adding pdfjs to the global scope, and removed immediately after the viewer acquires a reference.\n\n### Building\n\n```bash\nnpm run build\n```\n","readmeFilename":"README.md"}