Skip to content

Reading a PDF file from a S3 bucket location? #1081

Answered by jsvine
feelosophy13 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @feelosophy13; pdfplumber will not load PDFs directly from a URL, but the bytes approach should work. What version of pdfplumber are you using?

If, for some reason, you're on the latest version and the bytes approach still isn't working, you can try:

import io
pdfplumber.open(io.BytesIO(my_bytes))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@feelosophy13
Comment options

Answer selected by feelosophy13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants