Chady has asked for the wisdom of the Perl Monks concerning the following question:
fellow monks,
I have the following script that gathers some stuff from a MySQL database and generates a PDF File, and it's all done through CGI.
problem is, the client wants it to open inline whenever possible, so here's my header:I'm using PDF::Create, and here's the start code:use CGI qw/header/; print header(-type => 'application/pdf', -content_disposition => 'inline' );
if I output to a file, it's correct, but when I output to STDOUT and use the browser, I have to press Refresh everytime so that acrobat shows the page.use PDF::Create; my $pdf = new PDF::Create( #'filename' => 'test.pdf', 'fh' => *STDOUT, 'Version' => 1.2, 'PageMode' => 'UserOutlines', 'Author' => 'test', 'Title' => 'Invoice...' );
is this just a browser hickup? (trying on IE6 btw) or should something be done to the output? the same script is used for other requests, and every time the result is diffrent one time it works and one time it's doesn't, but I can't figure out why..
Thanx in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inline PDF not showing.
by blm (Hermit) on Sep 23, 2002 at 15:06 UTC | |
|
Re: Inline PDF not showing.
by RMGir (Prior) on Sep 23, 2002 at 13:14 UTC | |
|
Re: Inline PDF not showing.
by guha (Priest) on Sep 23, 2002 at 22:00 UTC |