Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert pdf to base64 python

# credit to the Stack Overflow user in the source link

import base64

with open("book.pdf", "rb") as pdf_file:
    encoded_string = base64.b64encode(pdf_file.read())
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #convert #pdf #python
ADD COMMENT
Topic
Name
1+6 =