This API REST is developed using ExpressJS to parse pdf files to json.
This API REST uses this technology:
- ExpressJS: to create API REST.
- NodeJS: to create API REST infrastructure with Express.
- pdfjs-dist: This is a pre-built version of the PDF.js source code. It is automatically generated by the build scripts.
- exceljs: Read, manipulate and write spreadsheet data and styles to XLSX and JSON.
.
Follow this steps to install and run this project:
- Install NodeJS in your server.
- Download this project.
- Execute
npm start
command into project folder. - Now a webservice is running on port 8080 (by default).
You can access to all fields using next syntax:
-
Parse:
http://localhost:8080/pdf
-
Parse:
http://localhost:8080/xml
-
HealthCheck:
http://localhost:8080/
docker build -t pdf-xml-parse .
docker run --name pdf-xml-parse -p 8080:8080 -d pdf-xml-parse