Method: TCPDF#startTransaction

Defined in:
lib/tcpdf.rb

#startTransactionObject Also known as: start_transaction

Stores a copy of the current TCPDF object used for undo operation.

@access public
@since 4.5.029 (2009-03-19)


13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
# File 'lib/tcpdf.rb', line 13943

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