A Windows command-line utility to save websites as a PDF file.
This utility renders a given website by using the Chromium Embedded Framework (CEF) and prints the web content to a PDF file.
Optionally, a timestamp prefix can be added to the output file name which e.g. makes it easier to store multiple versions of a website.
Why not using Microsoft Edge/WebView2?
I needed to create unattended snapshots of websites by using Windows Task Scheduler, but unfortunately, WebView2 cannot run in the context of the SYSTEM user account and does not work if no user is logged on in Windows.
msbuild Web2Pdf.sln
Alternatively, you can simply open the Solution File in Visual Studio and compile from there.
Create PDF file from a given URL:
Web2Pdf.exe http://<URL> website.pdf
Web2Pdf.exe https://<URL> /ts C:\Folder\website.pdf
- 0.1
- Initial Release
This project is licensed under the MIT License.