Class: PDF::Core::DocumentState
- Inherits:
-
Object
- Object
- PDF::Core::DocumentState
- Defined in:
- lib/pdf/core/document_state.rb
Overview
:nodoc:
Instance Method Summary collapse
- #__initialize ⇒ Object
-
#initialize(options) ⇒ DocumentState
constructor
A new instance of DocumentState.
Constructor Details
#initialize(options) ⇒ DocumentState
Returns a new instance of DocumentState.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/pdf/core/document_state.rb', line 5 def initialize() () if [:template] @store = if [:print_scaling] PDF::Core::ObjectStore.new( template: [:template], print_scaling: [:print_scaling] ) else PDF::Core::ObjectStore.new(template: [:template]) end @store.info.data.merge!([:info]) if [:info] else @store = if [:print_scaling] PDF::Core::ObjectStore.new( info: [:info], print_scaling: [:print_scaling] ) else PDF::Core::ObjectStore.new(info: [:info]) end end @version = 1.3 @pages = [] @page = nil @trailer = .fetch(:trailer, {}) @compress = .fetch(:compress, false) @encrypt = .fetch(:encrypt, false) @encryption_key = [:encryption_key] @skip_encoding = .fetch(:skip_encoding, false) @before_render_callbacks = [] @on_page_create_callback = nil end |
Instance Method Details
#__initialize ⇒ Object
4 |
# File 'lib/pdf/core/document_state.rb', line 4 alias __initialize initialize |