Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 279 Bytes

File metadata and controls

16 lines (11 loc) · 279 Bytes

pdf2text

Uses pdf2json to scrape text from PDFs

Usage

import pdf2text from "@crit-tech/pdf2text";

const pages = await pdf2text("path/to/file.pdf");

pages.forEach((page, pageNo) => {
  console.log(`Text from page ${pageNo}:`);
  console.log(page);
});