No commit activity in last 3 years
No release in over 3 years
This gem provides a wkhtmltopdf executable and configures wisepdf, wicked_pdf, and pdfkit for ruby based applications running Windows
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

wkhtmltopdf-windows

Provides a wkhtmltopdf executable for Windows environment.

Preconfigures pdfkit, wicked_pdf, and wisepdf to use this executable if they are loaded.

Installation

In your Gemfile:

  gem 'wkhtmltopdf-windows'

Usage

When using with wicked_pdf

Since wicked_pdf overwrites its config hash in the initializer, you will need to update it to make sure its exe_path is configured correctly.

If you don't need any extra configurations, you can simply remove the initializer. Or you can change it to:

WickedPdf.config ||= {}
WickedPdf.config.merge!({
  # your extra configurations here
})

When using with pdf_kit or wisepdf

No extra configuration is needed. But please make sure you are not re-configuring the binary path again in their initializer files.

When using with other gems

You will need to configure the path manually. You can get the path to the executable by using this: Gem.bin_path('wkhtmltopdf-windows', 'wkhtmltopdf.exe')

Current wkhtmltopdf binary Version

0.12.5.0 MSVC 2015 Win64

For more details see wkhtmltopdf Changelog

Special Thanks

This gem is based on wkhtmltopdf-heroku

Copyright

Copyright (c) 2019 Mike Gabriel. See LICENSE.txt for further details.