[HTML]
#!e:/Teamsite/iw-home/iw-perl/bin/iwperl
print "Content-type: text/html\n\n";
my $outPath = "Y:\\johndeeredotcom\\main\\powersystems\\WORKAREA\\workarea\\docs\\en_US\\rg\\ESC";
my
@myArray = ("6125AFM75_E_S0_R0","6081AFM01_E_S0_R0","6068TFM76_A_R0_S0","6068TFM50_A_S0_R0","4045TFM75_A_S0_R0","4045TFM50_A_S0_R0","4045DFM50_B_S0_R0");
foreach my $file (
@myArray) {
print $file."\n";
my $outFile = $outPath . "\\PCurves\\MarineGenSet\\$file.pdf";
(my $inFile = $outFile) =~ s#\.pdf$#.html#;
my $command = "e:\\teamsite\\iw-home\\tools\\java\\bin\\java.exe -Xms64m -Xmx256m -cp e:\\teamsite\\iw-home\\httpd\\deere\\iw-jdtools\\johndeeredotcom\\ESC\\CurvePDF.jar;e:\\teamsite\\iw-home\\httpd\\deere\\iw-jdtools\\johndeeredotcom\\ESC\\iText-2.1.2u.zip com.deere.u90.eba.custserv.ParseHTML \"$inFile\" \"$outFile\"2>&1";
`$command`;
}
[/HTML]
Hi,
Above is my small perl program, using which I create PDF documents by inputting HTML file. HTML has few images and they appear fine inside PDF document when I run above program from browser using
http://ts-internet-tal.deere.com/iw-jdtools/johndeeredotcom/ESC/esc_generationScript.ipl, but the same images will not appear when run same perl program from command line.
Any idea will be helpful.
Thanks,