Sha256: ed112242a6cfa6047b44892ba4db229f469373dfd5c2c2359e3b45dd492ca518
Contents?: true
Size: 562 Bytes
Versions: 28
Compression:
Stored size: 562 Bytes
Contents
module BrDanfe class Cce def initialize(xml) @xml = xml @pdf = CceLib::Document.new end def save_pdf(filename) generate @pdf.render_file filename end def render_pdf generate @pdf.render end private def generate CceLib::Header.new(@pdf).render CceLib::Barcode.new(@pdf, @xml).render CceLib::NfeKey.new(@pdf, @xml).render CceLib::Protocol.new(@pdf, @xml).render CceLib::Correction.new(@pdf, @xml).render CceLib::Footer.new(@pdf).render end end end
Version data entries
28 entries across 28 versions & 1 rubygems