ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

wkhtmltopdf

by jrappen ST4

Convert HTML to PDF via wkhtmltopdf in Sublime Text.

Labels html, pdf, utilities, utils

Details

Installs

  • Total 918
  • Win 585
  • Mac 181
  • Linux 152
Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3
Windows 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 2
Mac 0 0 1 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

License Required ST Build Downloads Package Control Latest tag SublimeHQ Discord Donate via PayPal

wkhtmltopdf plug-in for Sublime Text

Convert HTML to PDF via wkhtmltopdf in Sublime Text.

Documentation

Plugin documentation is available via the menu or command palette.

Code of conduct

https://github.com/jrappen/.github/blob/master/CODE_OF_CONDUCT.md

Contributing guide

https://github.com/jrappen/.github/blob/master/CONTRIBUTING.md

Requirements

  • This plug-in targets and is tested against the latest Build of Sublime Text, currently requiring Build 4074 or later.
  • Install Package Control
    • Close and reopen Sublime Text after having installed Package Control.
  • wkhtmltopdf must be in your PATH!

Installation

Using Package Control required, as it keeps your packages (with their dependencies) up-to-date!

Installation via Package Control

  • Open the Command Palette (Tools > Command Palette).
  • Choose Package Control: Install Package.
  • Search for wkhtmltopdf on Package Control and select to install.

Usage

Use either of the following two methods to convert an HTML document in the active view to PDF by selecting wkhtmltopdf: Convert to PDF from the:

  • context menu
  • command palette

Depending upon your settings this takes a while, see status bar for feedback.

Settings

Run wkhtmltopdf --extended-help via the command line to check for available options. The default is:

Error: language “jsonc” is not supported
//  Packages/wkhtmltopdf/.sublime/settings/wkhtmltopdf.sublime-settings

{
    "wkhtmltopdf.cmd_options": "--javascript-delay 10000 --outline-depth 8 --encoding utf-8"
}

You can adjust them via the command palette (Preferences: wkhtmltopdf: Settings) or the main menu (Preferences > Package Settings > wkhtmltopdf > Settings).

Source Code

https://www.github.com/jrappen/sublime-wkhtmltopdf

License

https://github.com/jrappen/sublime-wkhtmltopdf/blob/master/LICENSE

Issues

Please use the command palette or main menu to report an issue.

Donations

https://www.paypal.me/jrappen