Updating the library to view the PDF and enhancing the code for Activities