Reading a PDF file from a S3 bucket location? #1081
Answered
by
jsvine
feelosophy13
asked this question in
Q&A
-
I need to read PDF files that are stored in a S3 bucket. I tried the following approaches, but none of them worked. Does anyone know how I can read PDFs off of a S3 bucket?
|
Beta Was this translation helpful? Give feedback.
Answered by
jsvine
Jan 18, 2024
Replies: 1 comment 1 reply
-
Hi @feelosophy13; If, for some reason, you're on the latest version and the import io
pdfplumber.open(io.BytesIO(my_bytes)) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
feelosophy13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @feelosophy13;
pdfplumber
will not load PDFs directly from a URL, but thebytes
approach should work. What version ofpdfplumber
are you using?If, for some reason, you're on the latest version and the
bytes
approach still isn't working, you can try: