# File lib/pdf/writer.rb, line 1762
1762:   def close_object
1763:     unless @stack.empty?
1764:       obj = @stack.pop
1765:       @current_contents = obj[:contents]
1766:       @current_page = obj[:page]
1767:     end
1768:   end