GdPicture14 Namespace / GdPictureDocumentConverter Class / HTMLCustomJavaScript Property

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

Property Value

The default value is null
using GdPictureDocumentConverter conv = new(); conv.HTMLCustomJavaScript = "window.title = 'Hello World!'"; var st = conv.LoadFromHttp(new Uri("")); 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