HTMLCustomJavaScript Property (GdPictureDocumentConverter)
Specify JavaScript code to execute once the page is loaded and before the print to PDF step
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);
}
'Declaration
Public Property HTMLCustomJavaScript As String
Property Value
The default value is null
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 !");
}