docx2pdf set permissions on docx fie
I am calling an api to download a docx file which I save locally. I then want convert it to PDF. When I run docx2pdf on the file, I get a pop-up stating that MS Word needs permissions. What can I do to automate this step and remove the popup so a user is not involved? Should I set appropriate permissions on the file when I download it? What are those permissions? I tried chmod but no luck. this is excerpts from my code: response = requests.get(url, headers=HEADERS) if response.status_code == 200: content = response.content with open("ex.docx", "wb") as file: file.write(content) os.chmod("ex.do
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.