Phillip, Thanks, but this is not quite what I was looking for.
When the user clicks on "Quiz1" a perl script will be called to generate and compile a tex file using pdflatex. Once that is complete, I will have a file Quiz1.pdf which I want to send back to the user. Thanks. At 10:09 PM 7/21/04 +0000, Philipp Traeder wrote: >On Wednesday 21 July 2004 HH:53:19, David Arnold wrote: >> All, > >Hi David, >> >> I have a page with a link "Quiz1". >> >> When the user clicks on the the link, a perl script will be summoned that >> will populate forms of a pdf document. >> >> Now, I could create a new page at this point with a link to the newly >> created pdf, but could someone suggest a technique where I simply send the >> pdf to the user after the pdf forms have been populated? >> >> Does that sound like a redirect or does someone have a better suggestion? >> > >if I understand your problem correctly, you want to generate a pdf file when >the user clicks a link, and when the pdf is generated completely, you want to >send it back to him? > >If yes, just create the pdf file on the fly and send it back - I don't know >how to generate pdf files in perl, therefore I'll just give you an example >that creates a text file (untested, for demonstration only): > >#!/usr/bin/perl -w > >use strict; >use CGI; > >my $query = new CGI(); > ># print the header (you need to modify this to the correct content-type for >pdfs) >print $query -> header(-type => 'text/plain'); > >for (my $loop = 1; $loop <= 10; $loop++) { > print "line $loop\n"; >} > >If you execute this as CGI script, the user will receive a text file that he >can save. I think you should be able to do the same for PDFs. > >HTH, > >Philipp > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] ><http://learn.perl.org/> <http://learn.perl.org/first-response> > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>