# pdf2img2html
**Repository Path**: jalogs/pdf2img2html
## Basic Information
- **Project Name**: pdf2img2html
- **Description**: 把PDF文档按页转换成图片,再生成一个HTML页面,页面中可查看图片。
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-09-19
- **Last Updated**: 2025-09-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# PDF to HTML Converter
A desktop application that converts PDF files to interactive HTML documents with page navigation, thumbnails, and zoom controls.
## Features
- Convert PDF files to responsive HTML
- Interactive page navigation with thumbnails
- Zoom in/out and fit-to-width functionality
- Dark and light theme support
- Drag and drop interface
- Progress tracking
- Logging of conversion process
## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/pdf2img2html.git
cd pdf2img2html
```
2. Create a virtual environment (recommended):
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
3. Install dependencies:
```bash
pip install -r requirements.txt
```
## Usage
Run the application:
```bash
python main.py
```
### How to Use
1. Click "Browse PDF" or drag and drop a PDF file into the drop area
2. Click "Convert to HTML" to start the conversion
3. Once complete, you can:
- Open the HTML in your default browser
- Open the output folder
- View the conversion log
## Building Executable (Optional)
To create a standalone executable:
1. Install PyInstaller:
```bash
pip install pyinstaller
```
2. Build the executable:
```bash
pyinstaller --onefile --windowed --name PDF2HTMLConverter main.py
```
The executable will be in the `dist` directory.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.