A modern WinUI 3 application for converting HTML files and ZIP archives containing HTML files to PDF documents.
- Multiple Input Formats: Support for individual HTML files, ZIP archives containing HTML files, and entire folders
- Drag & Drop: Simple drag-and-drop interface for easy file conversion
- Batch Processing: Convert multiple files at once
- Smart Scaling: Automatic or manual page scaling with orientation detection
- Modern UI: Built with WinUI 3 featuring an acrylic backdrop
- Automatic Archiving: Creates ZIP archives of converted PDFs
- Windows 10 version 19041 or higher
- .NET 8.0
- WebView2 Runtime (usually pre-installed on Windows 11)
- Navigate to the release section
- Download the
.msixor.msixbundlefile - Double-click to install
- Clone this repository
- Open
HTMLConverter.slnin Visual Studio 2022 or later - Ensure you have the following workloads installed:
- .NET Desktop Development
- Universal Windows Platform development
- Build and run the solution
- Launch the application
- Choose one of three methods to add files:
- Click "Select Files" to choose HTML or ZIP files
- Click "Select Folder" to convert all HTML files in a folder
- Drag and drop files or folders directly onto the application window
- Select your preferred scaling (Auto/25%/50%/75%/100%) and orientation
- The application will automatically convert files to PDF
- Converted PDFs will be saved in a new folder with " PDFs" suffix
- A ZIP archive of the PDFs will be created automatically
- Single file/zip: Creates
[filename] PDFsfolder in the same directory - Folder conversion: Creates
[foldername] PDFsfolder in the parent directory - Multiple zips: Each creates its own output folder
- Each output folder is automatically zipped
MainWindow.xaml/MainWindow.xaml.cs: Main application window and conversion logicApp.xaml/App.xaml.cs: Application initializationPackage.appxmanifest: MSIX packaging configuration
- Framework: .NET 8.0 with WinUI 3
- UI: XAML with Acrylic backdrop
- PDF Rendering: WebView2 CoreWebView2.PrintToPdfAsync
- Platform: Windows App SDK
Future enhancements under consideration:
- Support for batch processing progress tracking
- Custom page margins configuration
- PDF metadata editing (title, author, etc.)
- Support for additional input formats
- Command-line interface for automation
- PDF merge functionality
- Watermark support
Have a feature idea? Open a feature request!
MainWindow.xaml/MainWindow.xaml.cs: Main application window and conversion logicApp.xaml/App.xaml.cs: Application initializationPackage.appxmanifest: MSIX packaging configuration
Contributions are welcome! Please read our Contributing Guidelines before submitting pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Brandon Temple
- GitHub: @bt1142msstate
- Built with WinUI 3 and Windows App SDK
- PDF conversion powered by Microsoft Edge WebView2
If you find this project useful, please consider giving it a star on GitHub!
Built with ❤️ for easy HTML to PDF conversion on Windows.
