sandal/prawn — Issue #297: Rollback breaks the generated PDF
Author: rivsc
Created: 2011-11-14 15:30:34+00:00
State: open

Prawn v1.0.0.rc1

The rollback method don't work as expected. The restored snapshot is not equivalent to the taken snapshot as seen in this simple example :

git://gist.github.com/1364163.git

Try first commenting the line 16 (pdf.rollback), the generated PDF contains all the "Never display... " lines and the "This is a text... lines"

Then uncomment the line 16. the genrated PDF should contain only the "This is a text..." lines.

What you will see :
* The PDF when using the "rollback" method is broken (see page 2)
* The pagination text is broken, the very first page is numbered 1 of 7 *AND* 6 of 7, the 6 is printed over the 1

Regards,

--
rivsc