Your code is awesome and very helpful to me. I love it and thank you so much!
Though I would have one small issue - the height of each output page get too much height at the bottom after rendered by calling .dragend().
I guest the height of page container is the total height of all pages inside it and .dragend() not resize its height.
Is this a bug or I'm doing something wrong?
p.s.
Snapshot before calling .dragend()

After rendered
