{"version":"1.0","type":"rich","title":"Gist 86238060ab8a159395cd","description":"This example demonstrates a server-side workflow for converting an HTML file into a PDF document. It reads an input HTML file from the filesystem, passes its contents to the `electron-html-to` library, and pipes the resulting PDF stream to an output file. The script uses the `convertFactory` with its PDF converter path, triggering the conversion asynchronously and handling errors or writing the output stream. The code relies on Node.js core modules `fs` for file operations and `process.argv` for command-line arguments, making it a reusable utility for generating PDFs from static HTML pages.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-86238060ab8a159395cd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}