{"_id":"react-pdftotext","_rev":"12-1495dcc51f65f244ceaff9792260128e","name":"react-pdftotext","dist-tags":{"latest":"1.4.0"},"versions":{"1.1.0":{"name":"react-pdftotext","version":"1.1.0","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"ISC","_id":"react-pdftotext@1.1.0","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"dist":{"shasum":"4ffab9a6b57ca1de1de4777d0926be55555a71b1","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.1.0.tgz","fileCount":3,"integrity":"sha512-iNl2RqcWKzIxaLAQURvaxkYBOwBjVsQlb6zRrkm3NRVYVPu+UItARdGsR0/KwRL+QZMygVAFDGUCOxHh52Z9iA==","signatures":[{"sig":"MEQCIA6Cw09jDpoqdYpWZE37uqvzWU03DQFZloU4V4I/ViJyAiAlqspJp43xBplfpLK9i4sqzHbTdWSAxKqEbGrS+DMZPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3148},"main":"index.js","gitHead":"80be9417f645536e243d0e215c42cfb9f7946eb1","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"_npmVersion":"10.1.0","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"react-pdf":"^7.7.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.1.0_1708771442363_0.6701100032529181","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"react-pdftotext","version":"1.1.1","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"ISC","_id":"react-pdftotext@1.1.1","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"be914faae62c1225235b6c04a99b69be4a4511e1","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.1.1.tgz","fileCount":3,"integrity":"sha512-Xj00Eh5E3BAw7myjM3EawrqvAxZNOQSi99KDWuZCPGX+oDRG867Z27DgdIEJXFVK0Fr9Gz2SO21wxnZ+waSIjw==","signatures":[{"sig":"MEUCIB/yJHTjXunFe1REcNi4Y0ytZV7ThCG6LxRzNKTaiz+DAiEA/9i5up2j/vjREr8jT9yQ5DVr5fRymhg7o4PxTfRry9M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3255},"main":"index.js","gitHead":"45e7c13daecedcb4020b5fd2fc54bedcd8647d72","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.1.0","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.9.0","dependencies":{"react-pdf":"^7.7.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.1.1_1708773135092_0.5722824360057914","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"react-pdftotext","version":"1.2.0","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"ISC","_id":"react-pdftotext@1.2.0","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"9428076f47f15345b757bbdcdf0c51fac8f20e99","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.2.0.tgz","fileCount":3,"integrity":"sha512-RI8PMH+SPWEiMIU7tpvY0EdDNOqUTieyy6R1F7OvsDsVHHhJP6bToCSEVYMLeloXPJVeAhL5xCVUEqHaEr/OwQ==","signatures":[{"sig":"MEYCIQDVowmsn31D1HDBim1pGefXK7GTIZ9dNJ4UuYtx+8SiiQIhAOEvcFCs++YtG/IjYumg96D16DuT1lpBfQKfAMk9g14F","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14931},"main":"dist/index.js","module":"dist/index.js","gitHead":"75bc34d84eee843dec077c308987e2d75d706a23","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"babel index.js -o dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"react-pdf":"^7.7.1"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.24.1","@babel/core":"^7.24.4","@babel/preset-env":"^7.24.4"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.2.0_1713550393479_0.14446015615173846","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"react-pdftotext","version":"1.3.0","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"ISC","_id":"react-pdftotext@1.3.0","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"4ebbdb2b61b9c9c0b1847580abd04b683b2a8163","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.0.tgz","fileCount":4,"integrity":"sha512-w/iXmwBe4g3fv0p2RZ8BIuo7bApUvmjkNhyKRuHwSraFQ/S7KZXyvkLIkNbaw7RtCoztMYH9GKGySYlH/eNQvg==","signatures":[{"sig":"MEYCIQDL1+dD7y/KlIi25ZAkDgkosJr7mpDLicykyVETi82N3gIhAJ2uNdZAYsOB7vnVlUxxYYTseM64rJpzk1idMQHJuxcw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4716},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"b86e09d5271d408d414b5e7534b230af126186fb","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"react-pdf":"^8.0.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.0_1716745874729_0.49178140292942385","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"react-pdftotext","version":"1.3.2","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","_id":"react-pdftotext@1.3.2","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"0adedb175e379731b00f9e0a37e8896b90dbde3b","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.2.tgz","fileCount":5,"integrity":"sha512-MXnzUjpltV5udpGqBP7uxbUtzkWnipVvRX746+FvTqIlG6/+aVadIkVYodXwGn4T2XPFtcI3pyqvNN9pfXRRlA==","signatures":[{"sig":"MEUCIDTfOXZCF9drt1voE0Py3Kt5FkVG1M46V7BEwOL02kdxAiEAlS0Thna7MMNZU1kDOgY9XFc79fTBcUc6flenbdGq2eU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5840},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"bbe002e0c7a17be729ac10986809b684a912eb06","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"react-pdf":"^9.1.0","pdfjs-dist":"^4.6.82"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.2_1725297127310_0.5028405125489017","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"react-pdftotext","version":"1.3.3","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","_id":"react-pdftotext@1.3.3","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"beea0ebbb030d35ebbc27359ba16e3c9a344bc48","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.3.tgz","fileCount":5,"integrity":"sha512-efTR49M4VCQFSqU0WGmyPuLcVwQcp6MIrtvzqNPLpPOOkuoqZ3ZaTlM15f6roAm3A3Sd3L0rM/fEj4KEWE0wPQ==","signatures":[{"sig":"MEUCIFXjvRRkGeeVA/cl0044oUb4Ec6MpS0p4Vca/OiJL0NsAiEA1UNFP16K6NuM+8ptyKNaNFqEmbaJzj4OZ6XZcvs8Ozo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5841},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"a1374b613f99a27ddc02e788fa9fc337d1974e03","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.2.4","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"react-pdf":"^9.1.0","pdfjs-dist":"^4.6.82"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.3_1725298211554_0.4694673850126927","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"react-pdftotext","version":"1.3.4","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","_id":"react-pdftotext@1.3.4","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://github.com/Utkarsh212/react-pdftotext#readme","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"513b706c33f577aebb726bd035fab2463bb574ab","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.4.tgz","fileCount":5,"integrity":"sha512-WRM41aCYueQn8CikwG9OxAur6DqSn5sE5j1yu3oG+WORTCfJLDH/m0dR9RnggxnKB51tfMeRFyOZuKJQZLtYBQ==","signatures":[{"sig":"MEUCIHjowxj42DW2DYBcEryPNBpeZuxpz8zeAEw7iXga1sVPAiEA/grfuqP47WBy7BuH+DyhJ1A9qYNLunIvexCaS1e+hlM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5664},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"3a0013773ff9d9691d10a047380d7382082cf5ad","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.18.0","dependencies":{"react-pdf":"^9.1.1","pdfjs-dist":"^4.6.82"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.4_1731867704516_0.5919972656355155","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"react-pdftotext","version":"1.3.5","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","_id":"react-pdftotext@1.3.5","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://utkarsh212.github.io/react-pdftotext/","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"842934572396f888448345386df8422569ee3627","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.5.tgz","fileCount":5,"integrity":"sha512-Ct9VFM3Tv/gTt3UXCcRJCRV5VxdVtACXS6cZGL0xefnwRM24SgvVaKAIPZs1dzr/bcOJv7PqeYkh+myl+jfF5w==","signatures":[{"sig":"MEQCIBpg0vmAG1Ie7cAY5EFDoiNdks0+sLZ47vTw6MlQWpH/AiARDWSI9iq6vgb21ag5KM6MQ6+LytGZX6Tptuyce1kwzA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5626},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"98b3e8faafdd87a65f1deb5a2d6ef5bd2a0bf211","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"react-pdf":"^10.4.1","pdfjs-dist":"^5.4.296"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.5_1776342946825_0.6030008939148579","host":"s3://npm-registry-packages-npm-production"}},"1.3.6":{"name":"react-pdftotext","version":"1.3.6","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","_id":"react-pdftotext@1.3.6","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"homepage":"https://utkarsh212.github.io/react-pdftotext/","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"dist":{"shasum":"5b6d52fd2cea14ca4dac960628e3665f8404ceda","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.3.6.tgz","fileCount":5,"integrity":"sha512-bSbwSN2xBaA4dp9EK2ktAoWJkDZ0iwZuc/2HIRiwi1CDDUlG0w0LdAhgfXKeQxznARV4cgLpsMna1Da3ho1P0Q==","signatures":[{"sig":"MEYCIQDiPOM5QEkyrGNa+AJ2+EnjXo/IUvFlEaKNd22858LpAQIhAJi6CzyynIw6d9/XvPoRvEwSJFFwSveHbUxYeUE2WqN+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5621},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","gitHead":"f3d415eea2aee344b2d63c4e3b591e93a70dd8b4","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"repository":{"url":"git+https://github.com/Utkarsh212/react-pdftotext.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple light weight react package to extract plain text from a pdf file.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"react-pdf":"^10.4.1","pdfjs-dist":"^5.4.296"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5"},"_npmOperationalInternal":{"tmp":"tmp/react-pdftotext_1.3.6_1776345170584_0.023426368296601385","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"react-pdftotext","version":"1.4.0","description":"A simple light weight react package to extract plain text from a pdf file.","homepage":"https://utkarsh212.github.io/react-pdftotext/","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/Utkarsh212/react-pdftotext.git"},"keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"author":{"name":"Utkarsh Pancholi"},"license":"MIT","dependencies":{"react-pdf":"^10.5.0"},"devDependencies":{"typescript":"^5.4.5"},"_id":"react-pdftotext@1.4.0","gitHead":"ace0fa02b5cc418bf801f0d37857b45d400aa777","bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-rGn8zLW/gdI0L8t68bsWPhl6pHu02Vb8oQmh4mmw14hTGEsJEnACr1mEuAONltRy8s3nF8Dew/WEs7NbrFLnfQ==","shasum":"c7c984f1828f13390b44177fa0d1f5d98bc6617b","tarball":"https://registry.npmjs.org/react-pdftotext/-/react-pdftotext-1.4.0.tgz","fileCount":5,"unpackedSize":5795,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmO6O/aPqUJGjGfB3ri+zREIunOTZ9iR1rKLVVJLPNpAIgDFHx6LHI5183GbAQG45I5QlJPk9bWtULX6ZojVo6e5k="}]},"_npmUser":{"name":"utkarsh212","email":"utka21200@gmail.com"},"directories":{},"maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-pdftotext_1.4.0_1788890277138_0.11406543579132067"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-24T10:44:02.362Z","modified":"2026-09-08T17:57:57.438Z","1.0.0":"2024-02-23T09:29:34.796Z","1.1.0":"2024-02-24T10:44:02.516Z","1.1.1":"2024-02-24T11:12:15.420Z","1.2.0":"2024-04-19T18:13:13.604Z","1.3.0":"2024-05-26T17:51:14.901Z","1.3.2":"2024-09-02T17:12:07.432Z","1.3.3":"2024-09-02T17:30:11.716Z","1.3.4":"2024-11-17T18:21:44.745Z","1.3.5":"2026-04-16T12:35:46.999Z","1.3.6":"2026-04-16T13:12:50.712Z","1.4.0":"2026-09-08T17:57:57.283Z"},"bugs":{"url":"https://github.com/Utkarsh212/react-pdftotext/issues"},"author":{"name":"Utkarsh Pancholi"},"license":"MIT","homepage":"https://utkarsh212.github.io/react-pdftotext/","keywords":["react-pdf","pdftotext","pdf","text","react","pdf2text","pdfjs","pdf-to-text"],"repository":{"type":"git","url":"git+https://github.com/Utkarsh212/react-pdftotext.git"},"description":"A simple light weight react package to extract plain text from a pdf file.","maintainers":[{"name":"utkarsh212","email":"utka21200@gmail.com"}],"readme":"# react-pdftotext\n\nLight-weight memory-safe client library for extracting plain text from pdf files.\n\n## Installing\n\nUsing npm:\n\n```js\nnpm install react-pdftotext\n```\n\n## Example\n\n**Local File Input**\n\nNow add a input tag with type=\"file\" to take file input.\n\n```html\n<input type=\"file\" accept=\"application/pdf\" onChange={extractText} />\n```\n\nImport the pdf2text function from package\n\n```js\nimport pdfToText from \"react-pdftotext\";\n\nfunction extractText(event) {\n  const file = event.target.files[0];\n  pdfToText(file)\n    .then((text) => console.log(text))\n    .catch((error) => console.error(\"Failed to extract text from pdf\"));\n}\n```\n\n**Remote PDF File Input**\n\nFor Pdf files stored at remote locations\n\n```js\nimport pdfToText from 'react-pdftotext'\n\nconst pdf_url = \"REMOTE_PDF_URL\"\n\nfunction extractText() {\n    const file = await fetch(pdf_url)\n        .then(res => res.blob())\n        .catch(error => console.error(error))\n\n    pdfToText(file)\n        .then(text => console.log(text))\n        .catch(error => console.error(\"Failed to extract text from pdf\"))\n}\n```\n\n## Contributing\n\nThis project welcomes contributions and suggestions.\n","readmeFilename":"README.md"}