How to print a pdf file to stdout using python?,sys.stdout.buffer.write(pdf_file.read())