Skip to content

Instantly share code, notes, and snippets.

View nsreed's full-sized avatar

Norman Reed nsreed

  • Praetor Labs
View GitHub Profile
@kristianmandrup
kristianmandrup / pdf_converter.rb
Last active May 31, 2019 09:29
Jekyll PDF Converter using PDFKit
require 'pdfkit'
require 'nokogiri'
require 'haml'
# config/initializers/pdfkit.rb
PDFKit.configure do |config|
# Note: Often required for Windows OS configuration
# config.wkhtmltopdf = '/path/to/wkhtmltopdf'