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.
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": ""
}
Clone the git repository, then install all the packages:
git clone https://github.com/adfontana/pdf-to-csv.git
npm install
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`.