How to send pdf file to browser for download. Currently my source code is in Local . How the pdf will be sent to browser when django application deployed to render webs service. #1255
rohinitechsolutions
started this conversation in
General
Replies: 1 comment 2 replies
-
Hello @rohinitechsolutions Did you check the documentation regarding Django? Please let us know if the example there is clear and answers your question. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using this version of fpdf2: fpdf2==2.7.4
Have tried all these options
# pdf.output(my_file_path)
# bytes(pdf.output(), encode='latin-1')
# pdf.output(my_file_path, "I")
# pdf.output('abc.pdf','F')
pdf.output('D','filename.pdf')
# pdf.output('D', custname + '-'+ invoicenumber +'.pdf')
# pdf.output('F', custname + '-'+ invoicenumber +'.pdf')
# pdf.output(custname + '-'+ invoicenumber +'.pdf')
I want to send the pdf file to browser and it should work in development as well as in production server(deploying in render web service) .
Any help will be greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions