Class: GHtml2Pdf::PrintSettings
- Inherits:
-
Gtk::PrintSettings
- Object
- Gtk::PrintSettings
- GHtml2Pdf::PrintSettings
- Defined in:
- lib/ghtml2pdf/print_settings.rb
Overview
Specialized PrintSettings class for printing to a file.
Instance Method Summary collapse
-
#initialize ⇒ PrintSettings
constructor
A new instance of PrintSettings.
- #output_uri=(uri) ⇒ Object
Constructor Details
#initialize ⇒ PrintSettings
Returns a new instance of PrintSettings.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ghtml2pdf/print_settings.rb', line 8 def initialize super set_number_up 1 set_reverse false set_print_pages :all set "output-file-format", "pdf" set_collate false set_n_copies 1 set_printer "Print to File" set_page_set :all set_scale 100.0 end |
Instance Method Details
#output_uri=(uri) ⇒ Object
21 22 23 |
# File 'lib/ghtml2pdf/print_settings.rb', line 21 def output_uri=(uri) set "output-uri", uri end |