1.4.3 • Published 5 months ago

afpp v1.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

afpp

Version codecov Node npm Downloads Repo Size Last Commit

Another f*cking pdf parser. (alpha)

Why?

If you are parsing pdf files in nodejs and you are satisfied with your actual solution, good for you, you don't need this.

But if you’ve encountered one or more of these issues:

  • package size (+30mb)
  • blocking event loop
  • performance issues
  • buggy as shit
  • not working in esm/commonjs
  • old pdfjs-dist as peer dependency
  • no typescript support
  • parsing of encrypted pdf files (password needed)

then you might find this package useful.

Prerequisites

  • Node.js 18+

Getting started

npm install afpp

commonjs:

const { pdf2string } = require('afpp');
const path = require('node:path');

const pathToFile = path.join('example.pdf');

(async function start() {
  const pdfString = await pdf2string(pathToFile);
  console.log(pdfString);
})();

esm:

import { pdf2string } from 'afpp';
import path from 'node:path';

const pathToFile = path.join('example.pdf');

(async function start() {
  const pdfString = await pdf2string(pathToFile);
  console.log(pdfString);
})();
1.4.3

5 months ago

1.4.2

5 months ago

1.4.1

5 months ago

1.4.0

9 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.1

10 months ago