@flatfile/plugin-pdf-extractor
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

This plugin will parse a data table in a PDF file and extract it into Flatfile.

Event Type: listener.on('file:created')

When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more

Parameters

opt.apiKey - string - (required)

The apiKey parameter specifies you pdftables.com API key.

opt.debug - boolean

The debug parameter lets you toggle on/off helpful debugging messages for development purposes.

API Calls

  • api.files.upload

Usage

A subscription to pdftables.com is required for this plugin to work. Create an API key there and use it below.

npm i @flatfile/plugin-pdf-extractor
import { pdfExtractorPlugin } from "@flatfile/plugin-pdf-extractor";

JavaScript

listener.js

export default function (listener) {
  listener.use(pdfExtractorPlugin({ apiKey: "key" }));
}

TypeScript

listener.ts

export default function (listener: FlatfileListener) {
  listener.use(pdfExtractorPlugin({ apiKey: "key" }));
}

Package Sidebar

Install

npm i @flatfile/plugin-pdf-extractor

Weekly Downloads

21

Version

0.2.2

License

ISC

Unpacked Size

27.4 kB

Total Files

12

Last publish

Collaborators

  • sambarrowclough
  • carlbrugger
  • hansjhoffman
  • haleymt
  • mmccooyyy
  • ahollenbeck
  • maerf0x0
  • rjhyde
  • mpoythress
  • flatderek
  • ashleygmulligan
  • alnoor
  • flatfilecolin
  • bigcountrycrane
  • flatfileinfra
  • bangarang
  • madmandrit
  • roberto-alcantara-ffile
  • mairechew
  • jmmander
  • srmotter
  • driscollrp
  • sarocu
  • dboskovic
  • brentkulwicki
  • nate.ferrero
  • jaredwalters