Method: PDF::Core::Page#finalize
- Defined in:
- lib/pdf/core/page.rb
#finalize ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Finalize page.
242 243 244 245 246 247 248 249 250 |
# File 'lib/pdf/core/page.rb', line 242 def finalize if dictionary.data[:Contents].is_a?(Array) dictionary.data[:Contents].each do |stream| stream.stream.compress! if document.compression_enabled? end elsif document.compression_enabled? content.stream.compress! end end |