New Forum | Previous | Next | (P-PDF) Acrobat 6.0
Topic: Bad Parameter error when Acrobat opens the FDF files in netscape
Conf: (P-PDF) Acrobat 6.0, Msg: 101377
From: Sanjeebsw
Date: 11/27/2003 12:35 AM
Hi,
I am getting Bad Parameter error when Acrobat opens the FDF files in netscape in unix. The following code creates a fdf file. When I open this fdf file in netscape in windows it works fine but in unix netscape it fails.
FDFDoc fDFDoc = new FDFDoc();
fDFDoc.SetValue("Name","Sanjeeb");
fDFDoc.SetValue("STATE","FL");
fDFDoc.SetOnImportJavaScript("app.alert(\"TEST\")", true);
FileOutputStream out = new FileOutputStream("/xahome/sanjeeb/name.fdf");
fDFDoc.SetFile("/xahome/sanjeeb/name.fdf");
fDFDoc.SetTargetFrame("Right");
fDFDoc.Save(out);
out.close();
String cmd = "netscape file:////xahome/sanjeeb/name.fdf";
Runtime.getRuntime().exec(cmd);
The above code states how to open a pdf file. I am getting error when it executes fDFDoc.SetOnImportJavaScript("app.alert(\"TEST\")", true); statement.
Please help me.
Thanks,
Sanjeeb