Added "reset" ability to PDF library so it can be sued more than once