GdPicture.NET.14.API
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
Syntax
'Declaration
 
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
);
public:
property String^ HTMLCustomJavaScript {
   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.LoadFromHttp(new Uri("https://avepdf.com/fr")); 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