Hi all,
I am new to this site and this is my first post. But this issue is of high priority.
I am trying to print pdf file in browser using perl script.
Onclick on hyperlink a child window is opened along with through javascript i have redirected to perl.In perl i am doing something like this,
print "Expires -1\n\n";
print "Content-Disposition: Attachmet; filename="Path of the file";
print "Content-Type: application/pdf\n\n";
open(myfile,"path of file") or die("can't open file");
while(<myfile>
{
print "$_";
}
But the problem when i click on hyperlink, a popup comes and gives option to save or open.If i select "Save" pdf file is saved properly.But click on "Open" is giving an error message like "An error encoutered while openinig the file.File not found".
I am using HTTP 1.1 proxy connections for NTLM user authentication.
Also i am trying to execute this code in solaris box.
Any suggestions on this will be very helpful.
Thanks in advance.