VintaSoft PDF .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions
document.OpenAction = new PdfJavaScriptAction(document, "UserName=\"Mike\";");This solution will work for any PDF viewer.
protected override void ExecuteApplicationJavaScripts(Vintasoft.Imaging.Pdf.JavaScript.PdfJavaScriptEngine engine)
{
base.ExecuteApplicationJavaScripts(engine);
var ms = new System.IO.MemoryStream();
var writer = new System.IO.StreamWriter(ms);
writer.WriteLine("UserName = \"Mike\";");
writer.Flush();
ms.Position = 0;
ExecuteApplicationJavaScript(engine, "MyInitalScript", ms);
}
This solution will work only in application, which uses VintaSoft Imaging .NET SDK.