Method: RBPDF#startTransaction
- Defined in:
- lib/rbpdf.rb
#startTransaction ⇒ Object Also known as: start_transaction
Stores a copy of the current RBPDF object used for undo operation.
- @access public
- @since 4.5.029 (2009-03-19)
16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 |
# File 'lib/rbpdf.rb', line 16733 def startTransaction() if @objcopy # remove previous copy commitTransaction() end # record current page number and Y position @start_transaction_page = @page @start_transaction_y = @y # clone current object @objcopy = objclone(self) end |