PhantomJS Wrapper
Inheritance Hierarchy
NReco.PhantomJS PhantomJS
Namespace: NReco.PhantomJS
Assembly: NReco.PhantomJS (in NReco.PhantomJS.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
The PhantomJS type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PhantomJS |
Create new instance of HtmlToPdfConverter
|
Methods
Name | Description | |
---|---|---|
Abort |
Abort PhantomJS process (if started)
| |
CopyToStdIn | ||
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Run(String, String ) |
Execute javascript code from specified file.
| |
Run(String, String , Stream, Stream) |
Execute javascript code from specified file with input/output interaction
| |
RunAsync |
Asynchronously execute javascript code from specified file with input/output interaction
| |
RunScript(String, String ) |
Execute javascript code block
| |
RunScript(String, String , Stream, Stream) |
Execute javascript code block
| |
RunScriptAsync |
Asynchronously execute javascript code block.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteEnd |
Closes phantomJS process standard input stream.
| |
WriteLine |
Writes a string followed by a line terminator to the PhantomJS standard input (stdin).
|
Properties
Name | Description | |
---|---|---|
CustomArgs |
Get or set extra PhantomJS switches/options
| |
ExecutionTimeout |
Get or set maximum execution time for running PhantomJS process (null is by default = no timeout)
| |
PhantomJsExeName |
Get or set PhantomJS tool executive file name ('phantomjs.exe' by default)
| |
ProcessPriority |
Get or set PhantomJS process priority (Normal by default)
| |
TempFilesPath |
Get or set location for temp files (default location: GetTempPath )
| |
ToolPath |
Get or set path where phantomjs.exe is located
|
Events
Name | Description | |
---|---|---|
ErrorReceived |
Occurs when error data is received from PhantomJS process
| |
OutputReceived |
Occurs when output data is received from PhantomJS process
|
See Also