ZipToPdf is a Python program designed to convert HTML format invoice documents downloaded as zip files from the "E-Arşiv Portal" website into PDF files. Additionally, it matches the names of the converted files to the customer names in the invoice files.
The purpose of this application is to streamline the process of uploading invoices by quickly converting them into a more accessible format (PDF) and aligning their filenames with customer names for easier management.
This application is intended for individuals and businesses, particularly those involved in e-commerce sales on platforms such as Trendyol and Hepsiburada, who seek to expedite the process of invoice uploading. Additionally, it is suitable for anyone who requires efficient invoice conversion and file management.
E-Invoice Conversion: Easily convert invoice documents downloaded from the E-Arşiv Portal in HTML format to PDF. File Naming: Automatically synchronize filenames with customer names extracted from the invoice files for better organization. File Merging: Merge multiple PDF files into a single document for convenience and efficient record-keeping.
-
If you have not installed Python yet, install it from here.
-
This application uses Wkhtmltopdf for conversions. You have to install it from wkhtmltopdf.
-
Clone this repository.
-
Specify to path for wkhtmltopdf.exe on conversions.py.
- Make sure you completed all installation steps.
- Navigate into project directory.
cd ZipToPdf
- Create a new virtual environment.
- Windows:
> python -m venv venv
> .\venv\Scripts\activate
- MacOS:
$ python -m venv venv
$ . venv/bin/activate
- Linux:
> python3 -m venv myenv
> source myenv/bin/activate
- Install the requirements.
pip install -r requirements.txt
- Run the program.
python app.py
- Run the program.
python app.py
1- We recommend user to create new folders with the given names (optional):
2- Download or paste .zip files into the zipfiles folder.
3- Specify folders with using Browse buttons:
4- Press "Run Program" button. A similar screen will appear shortly (system dependent).
5- Once the conversion process is finished, all .zip files in the zipfiles folder will be deleted. You'll find the extracted HTML files in the htmlfiles folder and the PDF files in the pdffiles folder.
- pdf files:
- html files:
6- You now have full control over your PDF files. You can make any changes you want and adapt them to your needs.
This project is licensed under the MIT License.
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests through GitHub.
This program is provided as-is without any warranties. Users are responsible for ensuring the accuracy and legality of converted documents.
For detailed instructions and additional information, please refer to my website.