Method: CombinePDF::PDF#save

Defined in:
lib/combine_pdf/pdf_public.rb

#save(file_name, options = {}) ⇒ Object

Save the PDF to file.

file_name

is a string or path object for the output.

**Notice!** if the file exists, it WILL be overwritten.



161
162
163
# File 'lib/combine_pdf/pdf_public.rb', line 161

def save(file_name, options = {})
  IO.binwrite file_name, to_pdf(options)
end