C# Class WkHtmlToXSharp.WkHtmlToPdfConverter

Plain wrapper around wkhtmltox API library.
WARNING: Due to underlaying's API restrictions all calls to instances of this class should be made from within the same thread!! See MultiplexingConverter for an interim & transparent solution.
Inheritance: IHtmlToPdfConverter
ファイルを表示 Open project: hmadrigal/playground-dotnet Class Usage Examples

Public Methods

Method Description
Convert ( ) : byte[]
Convert ( string inputHtml ) : byte[]
Dispose ( ) : void
WkHtmlToPdfConverter ( ) : System

Private Methods

Method Description
Dispose ( bool disposing ) : void
GetProperties ( string prefix, object instance ) : object>.IDictionary
GetStringValue ( object value ) : string
OnBegin ( int expectedPhases ) : void
OnError ( IntPtr ptr, string error ) : void
OnFinished ( IntPtr converter, bool success ) : void
OnPhaseChanged ( IntPtr converter ) : void
OnProgressChanged ( IntPtr converter, int progress ) : void
OnWarning ( IntPtr ptr, string warn ) : void
_BuildConverter ( IntPtr globalSettings, IntPtr objectSettings, string inputHtml ) : IntPtr
_BuildGlobalSettings ( ) : IntPtr
_BuildObjectsettings ( ) : IntPtr
_Convert ( string inputHtml ) : byte[]
_SetGlobalSetting ( IntPtr settings, string name, object value ) : void
_SetObjectSetting ( IntPtr settings, string name, object value ) : void

Method Details

Convert() public method

public Convert ( ) : byte[]
return byte[]

Convert() public method

public Convert ( string inputHtml ) : byte[]
inputHtml string
return byte[]

Dispose() public method

public Dispose ( ) : void
return void

WkHtmlToPdfConverter() public method

public WkHtmlToPdfConverter ( ) : System
return System