pwuertz / qtwehtmltopdf

Qt WebEngine based HTML to PDF converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Qt WebEngine HTML to PDF converter

qtwehtmltopdf is a command line tool for converting HTML pages to PDF documents. It is based on the Qt WebEngine framework, which in turn uses the Chromium engine to render HTML content.

Basic usage

For creating PDF from HTML simply call qtwehtmltopdf using the URL as first, and a target filename as second command line argument.

# Save PDF to file
qtwehtmltopdf http://google.com google.pdf

When using - as filename the PDF is written to stdout, allowing other applications to call into qtwehtmltopdf and retrieve the PDF data.

# Write PDF to stdout
qtwehtmltopdf http://google.com -

Building

qtwehtmltopdf is a Qt console application which should compile on any platform with a recent Qt5 SDK.

About

Qt WebEngine based HTML to PDF converter


Languages

Language:C++ 77.1%Language:CMake 17.3%Language:QML 4.0%Language:QMake 1.7%