I'm trying to write this simple script. It takes a file name of an html
file runs a command through a system() call that runs an HTML-PDF conversion
utility that should save the output to a file (for now it is output.pdf).
The program works fine when run from a command, however, doesn't work when
run from a web browser.... Any help would be appreciated...
I'm running Windows NT 4.0 with IIS and ActivePerl 5.005
Thanks
Mike Cahill
[EMAIL PROTECTED]
610-595-5006
Here's a copy of the code so you can get the jist of things:
#!/usr/bin/perl <not needed but included out of habit>
#I will eventually use this with dynamic filenames
#but, I just want to get it working first
$thefile="header.html";
print "Content-Type: application/pdf","\n\n";
$filename = "header.html";
&topdf($filename);
sub topdf {
my($filename) = shift;
system(htmldoc --webpage -f output.pdf header.html);
print "successful";
}
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl