{"_id":"@accoio/react-pdf-highlighter","_rev":"2-7bf9abe140d3676cb28fdb76aa032b4c","name":"@accoio/react-pdf-highlighter","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@accoio/react-pdf-highlighter","version":"2.0.0","description":"Set of React components for PDF annotation","main":"lib/index.js","scripts":{"build":"nwb build-react-component","copy-flow":"flow-copy-source src lib","copy-styles":"cp -r src/style lib","copy-files":"npm run copy-flow && npm run copy-styles","clean":"nwb clean-module && npm clean-demo","start":"nwb serve-react-demo","test":"npm run flow","flow":"flow","precommit":"npm run flow","deploy":"npm run build && gh-pages --dist ./demo/dist --branch gh-pages","prepublishOnly":"npm run build && npm run copy-files","prettier":"prettier --write 'src/**/*.js' 'demo/src/**/*.js'"},"dependencies":{"lodash":"^4.17.10","pdfjs-dist":"2.0.489","react-pointable":"^1.1.1","react-rnd":"^7.1.5"},"peerDependencies":{"react":">=0.14","react-dom":">=0.14"},"devDependencies":{"flow-bin":"0.73.0","flow-copy-source":"^1.1.0","gh-pages":"0.11.0","husky":"0.11.9","nwb":"0.21.0","prettier":"^1.8.2","react":"^15.4.2","react-dom":"^15.4.2","url-search-params":"0.6.1"},"author":{"name":"Artem Tyurin","email":"artem.tyurin@gmail.com"},"license":"MIT","keywords":["pdf","highlight","annotator","react-component"],"files":["lib"],"directories":{"lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/agentcooper/react-pdf-highlighter.git"},"bugs":{"url":"https://github.com/agentcooper/react-pdf-highlighter/issues"},"homepage":"https://github.com/agentcooper/react-pdf-highlighter#readme","gitHead":"5a9b5ab892265bc123b6e8ae1518f9863967e626","_id":"@accoio/react-pdf-highlighter@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"acco","email":"accomazz@gmail.com"},"dist":{"integrity":"sha512-a4VyOEU1Rif4ydXS0OJONDvpkymBXZ2UDGknFfiBT6s7AwDDkLmkrclIcsocLz03Dgs8DZUR4C7OJKH23OqHaA==","shasum":"9ebd61ab4fabd5fc0c04b221a69949aa4dd5a16c","tarball":"https://registry.npmjs.org/@accoio/react-pdf-highlighter/-/react-pdf-highlighter-2.0.0.tgz","fileCount":44,"unpackedSize":102272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUiyzCRA9TVsSAnZWagAAmhgP/10L4AEDoDhB4wTkJu90\nbBIEz0dvH8NTSO7WWALkXZbGQb34I1AwlZEwaxsM+NGh13i2Id/i+Ian+yzG\nIkSK+XeMyFc1dz7EamdeHYNtBURNxQQw7ciIXdlRph6C/eR2oIF+oL9KE7ib\n8zHrL7NyB7GAgNbBkQIsvOKSfgKOHpwPdrnYEK52u/nWOqSJr3vRTST/UlmZ\n/igzszofkztkmrHdRf4zCoJ2VB5ijATAkY0+43CM6us+mfAAxsKu2qirXQ//\n67PyVKaUU8XKZcy6N6kN0mYfx0B3hkainCGKwATG2Pl8VjZ/DolnCUU4oB+j\nugPL1njZnabSOa3bUcmTS6OwS+srBpHvB/gzahoilJxsqSsrYOQ1CuUGZunf\nsqSwAWeZDhk1+o/N2ew0p+JVPC9tEffduhd7C33lI00dUu61TZAJjolD3D6m\nTMsLUJ6u4ek56FSX40R34HVPcQwPFimslip2J0t7DmpHiZJYE+rwpqdRrR7V\nMEGRDrsGm/9gBPjqDo6yQQtONAEj925/zdXy9n6OcbiWHzPobPtL1plqq+v7\nKzCcM+VB38wFyva3Z7gittNf4YHgAYYUEsssd42urOUIvrP+6KUspXVel9dR\nJxM1UO1bv75AYgHoCx/okpUvckQjH1jxQ6wm3h+fBwkF+TxTXA8Un+HfzKsp\njG14\r\n=0Ysb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLLD4tcyJILUGUI4r8CwwWTdCb6ZPtuonsw8H3oANAXAIgaYS9Pw5jDfdK+TN6YdCAsVJpuvZ1a17hrypAbRby6fs="}]},"maintainers":[{"name":"acco","email":"accomazz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pdf-highlighter_2.0.0_1532112051567_0.4907127848534334"},"_hasShrinkwrap":false},"2.0.1":{"name":"@accoio/react-pdf-highlighter","version":"2.0.1","description":"Set of React components for PDF annotation","main":"lib/index.js","scripts":{"build":"nwb build-react-component","copy-flow":"flow-copy-source src lib","copy-styles":"cp -r src/style lib","copy-files":"npm run copy-flow && npm run copy-styles","clean":"nwb clean-module && npm clean-demo","start":"nwb serve-react-demo","test":"npm run flow","flow":"flow","precommit":"npm run flow","deploy":"npm run build && gh-pages --dist ./demo/dist --branch gh-pages","prepublishOnly":"npm run build && npm run copy-files","prettier":"prettier --write 'src/**/*.js' 'demo/src/**/*.js'"},"dependencies":{"lodash":"^4.17.10","pdfjs-dist":"2.0.489","react-pointable":"^1.1.1","react-rnd":"^7.1.5"},"peerDependencies":{"react":">=0.14","react-dom":">=0.14"},"devDependencies":{"flow-bin":"0.73.0","flow-copy-source":"^1.1.0","gh-pages":"0.11.0","husky":"0.11.9","nwb":"0.21.0","prettier":"^1.8.2","react":"^15.4.2","react-dom":"^15.4.2","url-search-params":"0.6.1"},"author":{"name":"Artem Tyurin","email":"artem.tyurin@gmail.com"},"license":"MIT","keywords":["pdf","highlight","annotator","react-component"],"files":["lib"],"directories":{"lib":"lib"},"repository":{"type":"git","url":"git+https://github.com/agentcooper/react-pdf-highlighter.git"},"bugs":{"url":"https://github.com/agentcooper/react-pdf-highlighter/issues"},"homepage":"https://github.com/agentcooper/react-pdf-highlighter#readme","gitHead":"9eea1f9a8b161b472f976224bb4af54439ef3e8d","_id":"@accoio/react-pdf-highlighter@2.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"acco","email":"accomazz@gmail.com"},"dist":{"integrity":"sha512-9f1iKnPORA3IRX4J/dp5ytqPOP/lZdWsgkGzszK6XzdxHcoxIPOfJfAJN+Kgdoovhcbddl2U1Sf2XBKQHbEmRQ==","shasum":"7fe269b94e07f6173d441d9c99eed4afd80382bb","tarball":"https://registry.npmjs.org/@accoio/react-pdf-highlighter/-/react-pdf-highlighter-2.0.1.tgz","fileCount":44,"unpackedSize":102342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbdm2CRA9TVsSAnZWagAACJwP/2fz7L36JtFeF0jBcJ9z\nlnvn71eT9LdbDMTGLl0JrCLV7N9a6Unicneh5afZPyvkhXxJDgUI5xIZbwVO\ngQDRIJbJVmbIWYRy6TB677iNYy902mCb47LhmB/7k5l2+f6xGqO2nRUWFiGR\nU49YmqtReSPuo99+k0FivTT2nm0YxL/F4eX4q/Cj+Z54CLEM8CpkmxQRSWbz\nv3F3LH0kaCrHyjIku0UfaoxuMh2wrHzcoua/Q9GP54JBaUq8f/GFITJmnE3h\nsuCW+TVbRVJ0pYelhP6ozDkhWifA1Se46B6nY2KBYKQy6gcJzv2gfio5yQgq\nABQe74sc/DbB8Vvovi5kPachmlrqJmAg1K/8LD+MAgntDi0dBPMyA31x26gn\nvQmSdF1lvSBi3Y7g24PKU9cos5nkSWUS/zEIMznQfPLJgYXDqCklvYYvMqeD\nI883SnPM5dSMb7fWQsHyAeS37FOKcPl1DmzXOJB7hYqPUUxwYw+3rhI6yZ/Y\nhHY6D/KF+FLl9I1kkyxSxFHOs/DkIy/K/639dS6JQfIxRuXwSzEcxCbpY5Ic\n44rkWJtVYILZOPO3yNvo2b3vrYMRijvwY3ljeEu8Pjauz9a47WvTvkWZL/+7\ntr0i+akoFJUaHkH//kW+xREfTDyeV8UC7tHlON1K3pmFSNQyY+3jrQiHgkLg\npU85\r\n=dV/J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMt/gOttvtUJlP3C7Ajn7BBgrJR/bTVqHbUF3FcA+srAiAwpgMMrV3eB0zZSTp65dDrX0WnL7kCKxLh6FQ9P7quKQ=="}]},"maintainers":[{"name":"acco","email":"accomazz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pdf-highlighter_2.0.1_1533925814292_0.9037576183376028"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-20T18:40:51.332Z","2.0.0":"2018-07-20T18:40:51.643Z","modified":"2022-04-04T11:07:25.675Z","2.0.1":"2018-08-10T18:30:14.391Z"},"maintainers":[{"name":"acco","email":"accomazz@gmail.com"}],"description":"Set of React components for PDF annotation","homepage":"https://github.com/agentcooper/react-pdf-highlighter#readme","keywords":["pdf","highlight","annotator","react-component"],"repository":{"type":"git","url":"git+https://github.com/agentcooper/react-pdf-highlighter.git"},"author":{"name":"Artem Tyurin","email":"artem.tyurin@gmail.com"},"bugs":{"url":"https://github.com/agentcooper/react-pdf-highlighter/issues"},"license":"MIT","readme":"## react-pdf-highlighter\n\n`react-pdf-highlighter` provides annotation experience for PDF documents on web\nbuilt on top of PDF.js. Text and rectangular highlights are supported. Highlight\ndata format is independent of the viewport, making it suitable for saving on the\nserver.\n\n### Demo\n\nhttps://agentcooper.github.io/react-pdf-highlighter/\n\n### Installation\n\n`npm install react-pdf-highlighter`\n\n### Example\n\nSee\n[`demo/src/App.js`](https://github.com/agentcooper/react-pdf-highlighter/blob/master/demo/src/App.js)\nfor React component API example.\n\nWhile docs are in progress, feel free to check the source annotated with Flow\ntype signatures.\n\n### Prior art\n\n[`react-pdf`](https://github.com/wojtekmaj/react-pdf) and\n[`react-pdfjs`](https://github.com/erikras/react-pdfjs) only provide React\nwrappers for PDF.js and do not have built-in annotation functionality.\n\n[`pdfjs-annotate`](https://github.com/instructure/pdf-annotate.js/) does not\nprovide text highlights out of the box.\n\nPDF.js provides only viewer:\n\n> [PDF.js is mainly written for reading PDF files, not editing them. Because of that we don't yet support adding any kind of annotations. We do however support rendering a number of annotation types for viewing.](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#is-it-possible-to-add-annotations-to-a-pdf)\n\nSee also:\n\n* https://github.com/mozilla/pdf.js\n* https://github.com/wojtekmaj/react-pdf\n* https://github.com/erikras/react-pdfjs\n* https://github.com/instructure/pdf-annotate.js/\n* https://blogs.dropbox.com/tech/2016/11/annotations-on-document-previews/\n\n### FAQ\n\n##### Can I get a new PDF with the highlights embedded into the document?\n\nNo, but [pdf-annotation-service](https://github.com/agentcooper/pdf-annotation-service) might be helpful for you.\n\n##### Wasn't this named react-pdf-annotator at some point?\n\nYes, but people from https://www.pdfannotator.com/ asked me to rename, since [they have a trademark for PDF Annotator](https://www.pdfannotator.com/en/help/infodisclaimer).\n\n##### I'm trying the demo with my PDF and it is not loading!\n\nPlease check the [CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) on your url. It is required for the cross-domain request.\n\n### Compatibility\n\nWorks in Google Chrome, Safari 10+, Firefox 52+. Not tested in Internet\nExplorer.\n","readmeFilename":"README.md"}