Python Slice Byte Array To Pdf