Sha256: a0b892415dd4c77494e731abd535afcb3646e1e4c91d38e839d93c928fc5e5ce
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
# # specifying podoff # # Tue Oct 20 17:25:49 JST 2015 # require 'spec_helper' describe Podoff do before :all do @d = Podoff.load('pdfs/udocument0.pdf') end describe 'Obj.prepend_text' do it 'adds text at the beginning of an obj' do d = @d.dup p1 = d.page(1) p1.prepend_text(0, 500, 'hello world! xxx', size: 35, font: 'Helv') #p1.prepend_text(0, 450, '"stuff NADA"', size: 35, font: 'Helv') d.write('tmp/out.pdf') s = `grep -a "hello world!" tmp/out.pdf`.strip expect(s).to eq('BT 0 500 Td /Helv 35 Tf (hello world! xxx)Tj ET') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
podoff-0.9.0 | spec/update_spec.rb |