Skip to main content

Documentation Index

Fetch the complete documentation index at: https://flatfileinc-update-listeners.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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

@flatfile/plugin-pdf-extractor


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

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

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

Imported NPM Packages

Usage

A subscription to pdftables.com is required for this plugin to work. Create an API key there and use it below.
install
npm i @flatfile/plugin-pdf-extractor
import
import { pdfExtractorPlugin } from "@flatfile/plugin-pdf-extractor";
export default function (listener) {
  listener.use(pdfExtractorPlugin({ apiKey: "key" }));
}

See the code

@flatfile/plugin-pdf-extractor