Class: DocPDF::Configuration
- Inherits:
-
Object
- Object
- DocPDF::Configuration
- Defined in:
- lib/docpdf/configuration.rb
Constant Summary collapse
- TEXT_DEFAULTS =
{ font: "Courier", font_file: nil, font_size: 10, margins: [50, 50, 50, 50], color: "333333", }.freeze
- WATERMARK_DEFAULTS =
{ font: "Helvetica", font_file: nil, font_size: 72, color: "AAAAAA", rotation: 45, }.freeze
Instance Attribute Summary collapse
-
#converter ⇒ Object
Returns the value of attribute converter.
-
#page_size ⇒ Object
Returns the value of attribute page_size.
-
#soffice_path ⇒ Object
Returns the value of attribute soffice_path.
-
#stamper ⇒ Object
Returns the value of attribute stamper.
-
#text_options ⇒ Object
Returns the value of attribute text_options.
-
#watermark_options ⇒ Object
Returns the value of attribute watermark_options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
26 27 28 29 30 31 32 33 |
# File 'lib/docpdf/configuration.rb', line 26 def initialize @soffice_path = "soffice" @converter = nil @stamper = nil @page_size = "LETTER" @text_options = TEXT_DEFAULTS.dup @watermark_options = WATERMARK_DEFAULTS.dup end |
Instance Attribute Details
#converter ⇒ Object
Returns the value of attribute converter.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def converter @converter end |
#page_size ⇒ Object
Returns the value of attribute page_size.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def page_size @page_size end |
#soffice_path ⇒ Object
Returns the value of attribute soffice_path.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def soffice_path @soffice_path end |
#stamper ⇒ Object
Returns the value of attribute stamper.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def stamper @stamper end |
#text_options ⇒ Object
Returns the value of attribute text_options.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def @text_options end |
#watermark_options ⇒ Object
Returns the value of attribute watermark_options.
3 4 5 |
# File 'lib/docpdf/configuration.rb', line 3 def @watermark_options end |