Skip to content

Trouble saving the file in X directory #289

Answered by Lucas-C
ezee969 asked this question in Q&A
Discussion options

You must be logged in to vote

Under Windows, you should be able to save your file this way:

pdf.output(r"C:\Users\MyName\pdf_name.pdf")

If you don't know the r string prefix in Python, you may want to check this explanation:
https://stackoverflow.com/questions/4780088/what-does-preceding-a-string-literal-with-r-mean

The error you witness could be caused by other parts of your code...
Could you provided some minimal code reproducing your issue please, so that I can help you further?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Lucas-C
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