8000 GitHub - Braykoff/PDF-Tables: Find and extract tables embedded in PDF · GitHub
[go: up one dir, main page]

Skip to content

About

Find and extract tables embedded in PDF

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Find and extract tables embedded in PDF.

This web application allows users to extract tables from PDF files and export them as csv file. Users upload a PDF and specify the table and column positions on each page using the interface. Rows are automatically detected based on the positions of text labels within the "index" column.

If PDFs do not contain a reliable text layer, OCR can be run in the browser, which may take a few minutes, depending on the length of the PDF.

Built with Vite, React and TypeScript.

Structure

This entire project is written in TypeScript and is organized as follows:

src/            # Source TypeScript/React code
scripts/        # Linting configuration
public/         # Static assets served as-is
dist/           # Compiled output (generated by the build)
index.html      # Vite HTML entry point
vite.config.ts  # Vite configuration

Development

Install dependencies and start the local dev server (with hot module reloading):

npm install
npm run dev

Linting

Linting and type checking can be done with the commands:

npm run lint
npm run typecheck

Linting is done by ESLint (see scripts/eslint-config.ts), typechecking is done by tsc (see tsconfig.json).

Building

Building can be done by running:

npm run build

Building requires Node.js/npm. Type checking runs first, and the bundled output is written to dist/.

The production build can be previewed locally with:

npm run preview

License

This project is under the MIT license.

The PDF.js library is provided under the Apache License, and is copyrighted by the Mozilla Foundation.

The Tesseract.js library is provided under the Apache License, and is copyrighted.

About

Find and extract tables embedded in PDF

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages

0