The goal is to download a pdf file via requests (Python) without saving it on the hard disk. The i'd like to access it with PdfReader from PyPDF2, again without saving it.
def readFile(self, id):
req = get(f'{self.workUrl}{id}/content', headers={'OTCSTicket': self.ticket})
if req.status_code == 200: return req.raw
else: raise Exception(f'Error Code {req.status_code}')
obj = server.readFile(id)
reader = PdfReader(obj)