1.1.1 • Published 1 year ago
pdf-table-extractor-ts v1.1.1
pdf-table-extractor-ts
Extract tables from PDF
This package is based on florpor's pdf-table-extractor with types.
Install
Using npm
$ npm install --save pdf-table-extractor-ts
Using yarn
$ yarn add pdf-table-extractor-ts
Using pnpm
$ pnpm add pdf-table-extractor-ts
Once the package is installed, you can import the library using import or require approach:
import extractPdfTable from 'pdf-table-extractor-ts';
Example
Example
import fs from 'fs';
import extractPdfTable from 'pdf-table-extractor-ts';
const file = fs.readFileSync('example.pdf');
extractPdfTable(file).then(res => {
console.log(JSON.stringify(res));
});
API
extractPdfTable(buffer, options)
buffer
<ArrayBuffer> pdf file buffer.options
<Object>maxEdgesPerPage
<?number> maximum number of edges to process per page. if defined and number of identified edges surpasses the setting tables will not be processes for the current page.progressFunc
<?function(Object)> callback to call after each page is processes with the current result object.
- returns: <Promise<Object>>
License
BSD License
1.1.1
1 year ago
1.1.0
1 year ago
1.0.32
1 year ago
1.0.31
1 year ago
1.0.30
1 year ago
1.0.29
1 year ago
1.0.28
1 year ago
1.0.27
1 year ago
1.0.26
1 year ago
1.0.25
1 year ago
1.0.24
1 year ago
1.0.23
1 year ago
1.0.22
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago