This is a Spring Boot application that provides a RESTful API to convert a PDF file into an Excel file and extract bank transaction data from the Excel file. The application can be easily deployed using Docker.
- PDF to Excel Conversion: Accepts a PDF file via a POST request and converts it into an Excel file.
- Bank Transaction Extraction: Parses the Excel file to extract bank transaction data and returns it as a response.
- Java 17
- Docker
- Maven
git clone https://github.com/yourusername/pdf2excel.git
cd pdf2excel
Using Maven
mvn clean package
java -jar target/pdf2excel-0.0.1-SNAPSHOT.jar
- Build the Docker Image:
docker build -t pdf2excel
- Run the Docker Container:
docker run -p 8080:8080 pdf2excel
- POST /api/convert
- Description: Convert a PDF file to an Excel file and extract bank transactions.
- Request: Multipart form data with a key file containing the PDF.
- Response: JSON containing extracted bank transactions
You can also pull the Docker image from Docker Hub and run it:
docker pull yourdockerhubusername/pdf2excel
docker run -p 8080:8080 yourdockerhubusername/pdf2excel