Fix multipage pdf output.
Merge pull request #73 from kmsquire/multipage_pdf

Fix multipage pdf output.