Skip to content
Discussion options

You must be logged in to vote

Actually, if you do this, the data stored in the PDF should be saved to disk 1:1 - i.e. including any EXIF:

img = doc.extract_image(xref)
out = open(f"{xref}.{img['ext']}", "wb")
out.write(img["image"])
out.close()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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