in reply to Open generated PDF in new tab/new page in HTML::Mason
I wanted WWW page to open generated PDF in separate Acrobat window, but didn't succeededIt would be helpful if you described how it is not working. What do you get back, a blank page or a page full of garbage or does the server just hang?
The best you can do is to generate and return a PDF document with the proper HTTP headers. What the client does with the document (opens Acrobat or whatever) depends on how the client is configured. You won't be able to invoke commands on the client's machine with system.
Make the following checks:
To open the print dialog, you could put your document in an <iframe> and specify an onload handler for it:
<html> <head> <script> function doit() { window.print(); } </script> </head> <body> <iframe src="your pdf url here" onload="doit()"></iframe> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Open generated PDF in new tab/new page in HTML::Mason
by grizzley (Chaplain) on May 11, 2008 at 16:56 UTC | |
by pc88mxer (Vicar) on May 12, 2008 at 06:08 UTC |