Skip to content

A tool for converting html files in a zipped folder into pdf files.

License

Notifications You must be signed in to change notification settings

yagizhanbilaldurak/ZipToPdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZipToPdf

Overview

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.

Purpose

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.

Target Users

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.

Use Cases

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.

Installation

  1. If you have not installed Python yet, install it from here.

  2. This application uses Wkhtmltopdf for conversions. You have to install it from wkhtmltopdf.

  3. Clone this repository.

  4. Specify to path for wkhtmltopdf.exe on conversions.py.

    image

Running the Program

  1. Make sure you completed all installation steps.
  2. Navigate into project directory.
cd ZipToPdf
  1. 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
  1. Install the requirements.
pip install -r requirements.txt
  1. Run the program.
python app.py
  1. Run the program.
python app.py

How to Use

1- We recommend user to create new folders with the given names (optional):

image

2- Download or paste .zip files into the zipfiles folder.

3- Specify folders with using Browse buttons:

asdasd

4- Press "Run Program" button. A similar screen will appear shortly (system dependent).

image

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:

image

  • html files:

image

6- You now have full control over your PDF files. You can make any changes you want and adapt them to your needs.

License

This project is licensed under the MIT License.

Contributions

Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests through GitHub.

Disclaimer

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.

About

A tool for converting html files in a zipped folder into pdf files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages