GdPicture.NET.14
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
 

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