GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureDocumentConverter Class / EmailCustomJavaScript Property





In This Topic
EmailCustomJavaScript Property (GdPictureDocumentConverter)
In This Topic
Specify JavaScript code to execute once the page is loaded and before the print to PDF step
Syntax
'Declaration
 
Public Property EmailCustomJavaScript As String
public string EmailCustomJavaScript {get; set;}
public read-write property EmailCustomJavaScript: String; 
public function get,set EmailCustomJavaScript : String
public: __property string* get_EmailCustomJavaScript();
public: __property void set_EmailCustomJavaScript( 
   string* value
);
public:
property String^ EmailCustomJavaScript {
   String^ get();
   void set (    String^ value);
}

Property Value

The default value is null
Example
using GdPictureDocumentConverter conv = new(); conv.HTMLCustomJavaScript = "window.title = 'Hello World!'"; var st = conv.LoadFromFile("c:\myfile.eml"); if (st != GdPictureStatus.OK) { throw new Exception("Convert from http Failed !"); } st = conv.SaveAsPDF(TestFiles.pdfHttpOutput); if (st != GdPictureStatus.OK) { throw new Exception("Saved from http Failed !"); }
See Also