@diahkomalasarinpm/at-a-recusandae
v1.0.0
Published
<div align="center"> <h1> <img src="https://github.com/diahkomalasarinpm/at-a-recusandae/assets/81325730/fb8c8369-e2c9-473f-8493-542fafdbfecc" width="80px"><br/>PDF Parser Client Side</h1> <a href="https://itsvg.in" target="_blank"><img src="https://img
Downloads
5
Maintainers
Keywords
Readme
PDF Parser Client Side
A lightweight easy to use package to parse text from PDF files on client side without any server dependency.
How to Install ?
Use npm or yarn to install this npm package
npm i @diahkomalasarinpm/at-a-recusandae
or
yarn add @diahkomalasarinpm/at-a-recusandae
Include the package
import extractTextFromPDF from "@diahkomalasarinpm/at-a-recusandae";
Basic Example:
import React from "react";
import extractTextFromPDF from "@diahkomalasarinpm/at-a-recusandae";
export default function Test() {
return (
<div>
<input
type="file"
name=""
id="file-selector"
accept=".pdf"
onChange={(e) => {
// Selecting the first file
const file = e.target.files[0];
// If file exists then we will call our function
if (file) {
extractTextFromPDF(file).then((data) => {
console.log(data);
});
}
}}
/>
</div>
);
}
Contributing
Feel free to contribute!
- Fork the repository
- Make changes
- Submit a pull request