Wkhtmltopdf

Jul 20, 2023

Convert HTML (or live webpages) to PDF or image

wkhtmltopdf and wkhtmltoimage are powerful utilities to convert HTML to PDF or an image file using a patched static build of Qt and the webkit rendering engine.

A webpage can be downloaded directly from the web and rendered into a PDF document or an image file multiple formats are supported.

Features of the static version

  • Convert web pages into PDF documents or images using webkit
  • Adding headers and footers
  • TOC generation
  • Batch mode conversions
  • XServer is not required however the X11 client libs must be installed

For proper functionality you may need to install the following ports x11-fonts/webfonts



Checkout these related ports:
  • Zbase32 - Base32 Encoder/Decoder
  • Ytnef - Unpack data in MS Outlook TNEF format
  • Yj - Convert between YAML, TOML, JSON, and HCL
  • Yj-bruceadams - Command line tool that converts YAML to JSON
  • Xml2c - Convert an XML file into C struct/string declarations
  • Xdeview - X11 program for uu/xx/Base64/BinHex/yEnc de-/encoding
  • Uulib - Library for uu/xx/Base64/BinHex/yEnc de-/encoding
  • Uudeview - Program for uu/xx/Base64/BinHex/yEnc de-/encoding
  • Unix2dos - Convert ASCII newlines between CR/LF and LF
  • Tuc - Text to Unix Conversion
  • Trans - Character encoding converter generator
  • Tnef - Unpack data in MS Outlook TNEF format
  • Ta2as - TASM to AT&T asm syntax converter (GNU AS)
  • Showkey - Display cooked key sequences (keycap-to-keystrokes mappings)
  • Rubygem-xdr - XDR Helper Library