lib/paperback/preparer.rb in paperback-0.0.2 vs lib/paperback/preparer.rb in paperback-0.0.3
- old
+ new
@@ -61,11 +61,11 @@
end
def self.log
@log ||= Paperback.class_log(self)
end
- def render(output_filename:)
+ def render(output_filename:, extra_draw_opts: {})
log.debug('Preparer#render')
opts = {
labels: labels,
qr_code: qr_code,
@@ -82,9 +82,11 @@
f.write(passphrase)
end
log.info("Wrote passphrase to #{passphrase_file.inspect}")
end
end
+
+ opts.merge!(extra_draw_opts)
@document.render(output_file: output_filename, draw_opts: opts)
log.info('Render complete')