@firanorg/eligendi-aut-ducimus

1.0.21 • Public • Published


PDF Parser Client Side

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 @firanorg/eligendi-aut-ducimus

or

yarn add @firanorg/eligendi-aut-ducimus

Include the package

import extractTextFromPDF from "@firanorg/eligendi-aut-ducimus";

Basic Example:

import React from "react";
import extractTextFromPDF from "@firanorg/eligendi-aut-ducimus";

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!

  1. Fork the repository
  2. Make changes
  3. Submit a pull request

Readme

Keywords

Package Sidebar

Install

npm i @firanorg/eligendi-aut-ducimus

Weekly Downloads

2,751

Version

1.0.21

License

MIT

Unpacked Size

15.1 kB

Total Files

8

Last publish

Collaborators

  • firanroundta