Some way to covert the string representation of a pdf into bytes in python Some way to covert the string representation of a pdf into bytes in python flask flask