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(options) ⇒ DocumentState
constructor
A new instance of DocumentState.
Constructor Details
#initialize(options) ⇒ DocumentState
Returns a new instance of DocumentState.
4 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 |
# File 'lib/pdf/core/document_state.rb', line 4 def initialize() () if [:template] if [:print_scaling] @store = PDF::Core::ObjectStore.new(:template => [:template], :print_scaling => [:print_scaling]) else @store = PDF::Core::ObjectStore.new(:template => [:template]) end @store.info.data.merge!([:info]) if [:info] else if [:print_scaling] @store = PDF::Core::ObjectStore.new(:info => [:info], :print_scaling => [:print_scaling]) else @store = 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 |