Releases: ChrisNelsonOK/URL-Print-To-PDF
v1.00
Simple PowerShell script using wkhtmltopdf utility to save (print function) to PDF any Web Page URL - Single, or a batch using a .txt import of URLs (1 per line). The PDF(s) saves to your chosen system directory as the "web page title".pdf for each URL provided.
The EXE (a 7zip compressed extracting file) extracts all of the needed files. 7Zip binaries, the required wkhtmltopdf files, and a launcher(.bat) example has been provided for use in further scripting and other advanced options and functionality such as setting paths, passing switches, calls from other utilities, wkhtmltopdf options such as PDF export formatting, etc.
The only required files to run:
- URL-Print-To-PDF.ps1 (The PowerShell script)
- wkhtmltopdf files. Either install, or ensure the wkhtmltopdf files are in your system path.
- For convenience, the standalone PowerShell script, and a 7z of wkhtmltopdf has been provided for download here if you aren't comfortable with the 7zip EXE above.
Only tested on Windows (11 x64), but technically should work with PowerShell & wkhtmltopdf extension to the different Linux/MacOS flavors these days.
Any issues, suggestions, or even use-case scenarios you find to use the script and want to share!