Click or drag to resize

CSPhantomJS Class

PhantomJS wrapper - Main class.
PhantomJS wrapper - Events.
Inheritance Hierarchy
SystemObject
  CSPhantomJSCSPhantomJS

Namespace:  CSPhantomJS
Assembly:  CSPhantomJS (in CSPhantomJS.dll) Version: 1.0.0
Syntax
public class CSPhantomJS : IDisposable

The CSPhantomJS type exposes the following members.

Constructors
  NameDescription
Public methodCSPhantomJS
Constructor
Top
Properties
  NameDescription
Public propertyArgsDirect
Set your own arguments to the command of the process.
Public propertyDestinationFormat
The destination media format of the destination file. This can be image or PDF. Default is Image.
Public propertyImageFormat
Relevant when DestinationFormat is Image. The output can be PNG or JPEG image format. For example: "1920px" will capture the entire page with window width of 1920px. "800px*600px" will capture a window of 800x600. Default is 1920px.
Public propertyOutFile
The destination file name (the path and the file name).
Public propertyPageFormat
Relevant when DestinationFormat is PDF. Examples: "5in*7.5in", "10cm*20cm", "A4", "Letter".
Public propertyPhantomJSLibsPath
The path and the file name of the pahntomjs.exe file with the libraries.
Public propertyURL
The URL address to capture, this should include the protocol (http:// https:// etc).
Public propertyUserKey
The user key.
Public propertyUserName
The user name.
Top
Methods
  NameDescription
Public methodAbort
Abort (stop) the capturing operation.
Public methodCapture
Capture web page according to the defined properties of the library.
Public methodCaptureAsync
Capture async web page according to the defined properties of the library.
Public methodCheckLicense
Check the user license of the component.
Public methodDispose
Protected implementation of Dispose pattern.
Protected methodDispose(Boolean)
Dispose.
Public methodGetArgs
Get the arguments according to the defined properties of the library.
Public methodPause
Suspend (pause) the capturing operation.
Public methodResume
Resume (unpause) the capturing operation.
Top
Events
  NameDescription
Public eventOperationClosed
Closed progress.
Public eventOperationDone
Operation done.
Public eventOperationOutput
Operation output.
Public eventOperationProgress
Operation progress.
Public eventOperationStart
Operation done.
Top
See Also