lib/prawn/document/graphics_state.rb
# Pops the last saved graphics state off the graphics state stack and
# restores the state to those values
Pops the last saved graphics state off the graphics state stack and
restores the state to those values
Pops the last saved graphics state off the graphics state stack and restores the state to those values
def restore_graphics_state
        if graphic_stack.empty?
          raise PDF::Core::Errors::EmptyGraphicStateStack,
            "\n You have reached the end of the graphic state stack"
        end
        close_graphics_state
        graphic_stack.restore_graphic_state
      end
def restore_graphics_state if graphic_stack . empty? raise PDF :: Core :: Errors :: EmptyGraphicStateStack , "\n You have reached the end of the graphic state stack" end close_graphics_state graphic_stack . restore_graphic_state end
Pops the last saved graphics state off the graphics state stack and
restores the state to those values
Pops the last saved graphics state off the graphics state stack and restores the state to those values