How to output PDF from CGI call

How to output PDF from CGI call

Postby peteralen » Tue Apr 22, 2014 10:54 am


I am new to Python and have been looking for a way to output PDF from a Python CGI call. I haven't found much on this topic and it mostly has been Perl-based and also not exactly what I am looking for. Any thoughts on how my Python CGI script can output PDF rather than HTML? I am not looking to create a PDF file within the CGI script, but rather to have the return type be "application/pdf".

Thanks for any thoughts - Peter
Last edited by stranac on Tue Apr 22, 2014 10:56 am, edited 1 time in total.
Reason: First post lock.
Posts: 2
Joined: Tue Apr 22, 2014 10:50 am

Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest