Sha256: e119198fe3be6a3bc471e19a6b0b188053e39c6017359c92cdff8a880cec3063

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

# As of 2010.01.12, we have confirmed that page_number is not properly set on
# transaction rollback, resulting in an error from the code sample below.
#
# Resolved in 7c62bbf.
#

$LOAD_PATH << File.join(File.dirname(__FILE__), '..','lib')
require "prawn/core"

Prawn::Document.generate("transaction_rollback_pagenumber.pdf") do
  text "Hello world"

  transaction do
    text "hello " * 1000
    rollback
  end

  start_new_page
  text "hi there"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prawn-graph-0.0.2 vendor/prawn-core/bugs/resolved/transaction_page_number_issue_79.rb
prawn-graph-0.0.1 vendor/prawn-core/bugs/resolved/transaction_page_number_issue_79.rb