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

0.5.0 • 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

9

Version

0.5.0

License

ISC

Unpacked Size

35.8 kB

Total Files

12

Last publish

Collaborators

  • meritmalling
  • sambarrowclough
  • carlbrugger
  • mmccooyyy
  • rjhyde
  • flatderek
  • alnoor
  • flatfilecolin
  • bigcountrycrane
  • flatfileinfra
  • bangarang
  • madmandrit
  • jmmander
  • sarocu
  • dboskovic
  • nate.ferrero