module Prawn::Document::Internals
This module exposes a few low-level PDF features for those who want to extend Prawn’s core functionality. If you are not comfortable with low level PDF functionality as defined by Adobe’s specification, chances are you won’t need anything you find here.
@private
Public Instance Methods
Source
# File lib/prawn/document/internals.rb, line 71 def renderer @renderer ||= PDF::Core::Renderer.new(state) end
Document renderer.
@return [PDF::Core::Renderer]
Source
# File lib/prawn/document/internals.rb, line 38 def restore_graphics_state restore_transformation_stack renderer.restore_graphics_state end
Restore graphic state.
@return [void]
Source
# File lib/prawn/document/internals.rb, line 29 def save_graphics_state(state = nil, &block) save_transformation_stack renderer.save_graphics_state(state, &block) restore_transformation_stack if block end
Save current graphics state.
@yield Restores graphic state after the block. @return [void]