-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdf.output() issue #213
Comments
Hi @StefanIancu!
See also: #207
On the homepage of from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.set_font('helvetica', size=12)
pdf.cell(txt="hello world")
pdf.output("hello_world.pdf") The argument provided to pdf.output("/tmp/hello_world.pdf") # on Linux
pdf.output("C:\\Temp\\hello_world.pdf") # on Windows |
Hi Lucas, I am actually using fpdf2, I tried your solution and it worked! I didn't know that I should insert the absolute path even though I checked the documentation several times. I think that I was reading the documentation for the wrong module. Tried to apply the rule from pyfpdf to fpdf2. Thank you so much for this!!! |
Glad I could help you! 😊 |
Hi,
I want to send the output to a specific location/file. I tried the following and I'm always getting the destination input error:
-pdf.output("name.pdf", "F")
-pdf.output("name.pdf", "path/path/path")
-pdf.ouput("name.pdf", "folder_name")
I tried multiple combinations and I get the destination error or the pdf is sent to the destination I am currently (in the Terminal).
Am I doing something wrong here?
Thank you.
The text was updated successfully, but these errors were encountered: