diff --git a/lib/showoff.rb b/lib/showoff.rb index f7d199ddc..54098f8a4 100644 --- a/lib/showoff.rb +++ b/lib/showoff.rb @@ -382,7 +382,7 @@ def pdf(static=true) # PDFKit.new takes the HTML and any options for wkhtmltopdf # run `wkhtmltopdf --extended-help` for a full list of options - kit = PDFKit.new(html, ShowOffUtils.showoff_pdf_options) + kit = PDFKit.new(html, ShowOffUtils.showoff_pdf_options(settings.pres_dir)) # Save the PDF to a file file = kit.to_file('/tmp/preso.pdf') diff --git a/lib/showoff_utils.rb b/lib/showoff_utils.rb index bd251c2ad..d062aa1b5 100644 --- a/lib/showoff_utils.rb +++ b/lib/showoff_utils.rb @@ -288,7 +288,7 @@ def self.get_config_option(dir, option, default = nil) data = JSON.parse(File.read(index)) if data.is_a?(Hash) if default.is_a?(Hash) - default.merge(data[option]) + default.merge(data[option] || default) else data[option] || default end