README.md in ruby_danfe-1.13.2 vs README.md in ruby_danfe-1.15.0
- old
+ new
@@ -14,10 +14,12 @@
If you have the xml saved in a file:
require "ruby_danfe"
RubyDanfe.generate("sample.pdf", "sample.xml")
+ RubyDanfe.generate("cte.pdf", "cte.xml", "dacte")
+ RubyDanfe.generate("cteos.pdf", "cteos.xml", "dacteos")
If you have the xml in a variable:
xml = "string xml"
pdf = RubyDanfe.generatePDF(xml)
@@ -56,14 +58,18 @@
You can use it following the steps above:
$ cd test
$ ruby generate.rb nfe_with_ns.xml
+ $ ruby generate.rb cte_with_ns.xml 'dacte'
+ $ ruby generate.rb cteos_with_ns.xml 'dacteos'
You can also use an special version of irb with all classes pre-loaded. Just use:
$ rake console
RubyDanfe.generate("output.pdf", "test/nfe_with_ns.xml")
+ RubyDanfe.generate("output.pdf", "test/cte.xml", 'dacte')
+ RubyDanfe.generate("output.pdf", "test/cteos.xml", 'dacteos')
or
$ rake console
my_xml_string = ""