Skip to content
/ pdf-to-csv Public template

Angular Application to read and convert PDF files data as CSV data

License

Notifications You must be signed in to change notification settings

adfontana/pdf-to-csv

Repository files navigation

PDF to CSV

Click here and see it in action.

PDF to CSV is an Angular Application that allows to open PDF files and convert the data of those files as CSV data, that could be processed and stored more easily.

This project was created as an example of how to read pdf files and manipulate its data in an Angular Application project.

Dependecies

The data conversion is done by the pdfjs-dist package, and the xlsx package is used to save the data as an Excel file.

For pdfjs-dist package to work, was necessary to add the lines below as an asset in the angular.json file

{
    "glob": "pdf.worker.*",
    "input": "node_modules/pdfjs-dist/build/",
    "output": ""
}

Installation

Clone the git repository, then install all the packages:

git clone https://github.com/adfontana/pdf-to-csv.git
npm install

Usage

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.