Created
November 1, 2018 18:06
-
-
Save JonnatasCabral/ade72e5a0096308a289020687cd3c7fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| txt = open("contract.txt", "rb") | |
| with open("test.pdf", "wb") as pdf: | |
| pdf.write(base64.decodebytes(txt.read())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment