Closed jiarongkoh closed 1 year ago
Hi @jiarongkoh Appreciate your interest in the library. The issue is happening because you are encoding the data. You should use io.BytesIO instead
. The code will become
import io
data = io.BytesIO(requests.get(url).content)
instead of
data = base64.b64encode(requests.get(url).content)
Encountered the above error when I attempted to pass the pdf file as bytes to the
pdfplumber.open()
function.Code:
Error:
I'm using: