Performance enhancement

No longer reads PDF into memory when outputing to file. This can save significant time for large pdfs.