lib/ruby_danfe.rb in ruby_danfe-0.0.1 vs lib/ruby_danfe.rb in ruby_danfe-0.0.2
- old
+ new
@@ -2,11 +2,11 @@
require 'prawn'
require 'nokogiri'
module RubyDanfe
- version = "0.0.1"
+ version = "0.0.2"
class XML
def initialize(xml_filename)
@xml = Nokogiri::XML(File.new(xml_filename))
end
@@ -20,11 +20,9 @@
xml = XML.new(xml_filename)
Prawn::Document.generate(pdf_filename) do |pdf|
- pdf.set_margin [14, 14, 14, 14]
-
# rectangle
pdf.stroke_rectangle [328, 653], 222, 22
# rectangle
pdf.stroke_rectangle [328, 697], 222, 84