Sha256: 439cf5ee7cca7e6d3407b86f0fc5f60ecf365f6ef02cb6edfb2e4779dae2cd3b

Contents?: true

Size: 799 Bytes

Versions: 8

Compression:

Stored size: 799 Bytes

Contents

require 'rubygems'
require 'doc_raptor'

DocRaptor.api_key "YOUR_API_KEY_HERE"

xls_html = "<table><tr><td>I am a test cell.</td><td>So am I</td></tr></table>"
File.open("docraptor_sample.xls", "w+") do |f| 
  f.write DocRaptor.create(:document_content => xls_html,
                           :name             => "docraptor_sample.xls",
                           :document_type    => "xls",
                           :test             => true)
end

pdf_html = '<html><body>I am a test doc!</body></html>'
File.open("docraptor_sample.pdf", "w+") do |f| 
  f.write DocRaptor.create(:document_content => pdf_html,
                           :name             => "docraptor_sample.pdf",
                           :document_type    => "pdf",
                           :test             => true)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
doc_raptor-0.5.0 examples/docraptor_gem_example.rb
doc_raptor-0.4.0 examples/docraptor_gem_example.rb
doc_raptor-0.3.4 examples/docraptor_gem_example.rb
doc_raptor-0.3.3 examples/docraptor_gem_example.rb
doc_raptor-0.3.2 examples/docraptor_gem_example.rb
doc_raptor-0.3.1 examples/docraptor_gem_example.rb
doc_raptor-0.3.0 examples/docraptor_gem_example.rb
doc_raptor-0.2.3 examples/docraptor_gem_example.rb