Method: Pdfcrowd::ImageToPdfClient#initialize
- Defined in:
- lib/pdfcrowd.rb
#initialize(user_name, api_key) ⇒ ImageToPdfClient
Constructor for the Pdfcrowd API client.
-
user_name- Your username at Pdfcrowd. -
api_key- Your API key.
3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 |
# File 'lib/pdfcrowd.rb', line 3923 def initialize(user_name, api_key) @helper = ConnectionHelper.new(user_name, api_key) @fields = { 'input_format'=>'image', 'output_format'=>'pdf' } @file_id = 1 @files = {} @raw_data = {} end |