Method: Pdfcrowd::HtmlToImageClient#initialize
- Defined in:
- lib/pdfcrowd.rb
#initialize(user_name, api_key) ⇒ HtmlToImageClient
Returns a new instance of HtmlToImageClient.
2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 |
# File 'lib/pdfcrowd.rb', line 2087 def initialize(user_name, api_key) @helper = ConnectionHelper.new(user_name, api_key) @fields = { 'input_format'=>'html', 'output_format'=>'png' } @file_id = 1 @files = {} @raw_data = {} end |