Browse plugins

plugin-pdf-extractor

A plugin for parsing PDF files in Flatfile.

Install
npm i @flatfile/plugin-pdf-extractor
Source:
View source
Package:
@flatfile/plugin-pdf-extractor 16 installs
Dependencies
@flatfile/util-common@^1.4.1, @flatfile/util-file-buffer@^0.4.1 (+4 more)

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" }));
}