Class: PdfjsViewer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfjs_viewer/configuration.rb

Overview

PdfjsViewer Configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.



11
12
13
14
15
16
17
18
19
20
# File 'lib/pdfjs_viewer/configuration.rb', line 11

def initialize
  @show_highlight_button = true
  @show_text_button = true
  @show_draw_button = true
  @show_add_edit_image_button = true
  @show_print_button = true
  @show_save_button = true
  @show_open_file_button = true
  @stylesheet_path = nil
end

Instance Attribute Details

#show_add_edit_image_button ⇒ Object

Returns the value of attribute show_add_edit_image_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_add_edit_image_button
  @show_add_edit_image_button
end

#show_draw_button ⇒ Object

Returns the value of attribute show_draw_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_draw_button
  @show_draw_button
end

#show_highlight_button ⇒ Object

Returns the value of attribute show_highlight_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_highlight_button
  @show_highlight_button
end

#show_open_file_button ⇒ Object

Returns the value of attribute show_open_file_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_open_file_button
  @show_open_file_button
end

#show_print_button ⇒ Object

Returns the value of attribute show_print_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_print_button
  @show_print_button
end

#show_save_button ⇒ Object

Returns the value of attribute show_save_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_save_button
  @show_save_button
end

#show_text_button ⇒ Object

Returns the value of attribute show_text_button.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def show_text_button
  @show_text_button
end

#stylesheet_path ⇒ Object

Returns the value of attribute stylesheet_path.



7
8
9
# File 'lib/pdfjs_viewer/configuration.rb', line 7

def stylesheet_path
  @stylesheet_path
end