Sha256: be5d2c863205c447d4dd207d8dc9d16a6e3a229a9aac90329b395cd9cc214cc1
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'pdf/stamper' describe PDF::Stamper do before(:each) do @pdf = PDF::Stamper.new(File.join(File.dirname(__FILE__), "test_template.pdf")) @pdf.text :text_field01, "test" @pdf.text :text_field02, "test2" @pdf.image :button_field01, File.join(File.dirname(__FILE__), "logo.gif") end it "should create PDF document" do @pdf.to_s.should_not be_nil end it "should save PDF document" do @pdf.save_as "test_output.pdf" File.exist?("test_output.pdf").should be_true #File.delete("test_output.pdf") # Comment this out to view the output end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
millisami-pdf-stamper-0.0.0 | spec/pdf_stamper_spec.rb |
millisami-pdf-stamper-0.1.0 | spec/pdf_stamper_spec.rb |
millisami-pdf-stamper-0.2.0 | spec/pdf_stamper_spec.rb |