lib/pdfgen.rb in pdfgen-0.3.0 vs lib/pdfgen.rb in pdfgen-0.3.1

- old
+ new

@@ -40,9 +40,10 @@ def to_pdf(opts = {}) stdin_options = { pdf_options: opts, current_path: Dir.pwd, launch_options: @launch_options } stdin_options = stdin_options.merge(viewport_options: @viewport_options) if @viewport_options stdin_options = stdin_options.merge(emulate_media: @emulate_media) if @emulate_media + stdin_options = stdin_options.merge(wait_for_timeout: @wait_for_timeout) if @wait_for_timeout file = Tempfile.new('input_html') file.write(@html) file.close pdf_output, status = Open3.capture2(MAKE_PDF_COMMAND, file.path, stdin_data: stdin_options.to_json) file.unlink \ No newline at end of file