Module: BrInvoicesPdf::Cfe::Renderer::QrCode
- Extended by:
- BaseRenderer, Util::BaseRenderer
- Defined in:
- lib/br_invoices_pdf/cfe/renderer/qr_code.rb
Constant Summary collapse
- SAT_QRCODE_SEPARATOR =
'|'
- BARCODE_HEIGHT =
50
Constants included from Util::BaseRenderer
Util::BaseRenderer::CNPJ_FORMAT, Util::BaseRenderer::CPF_FORMAT, Util::BaseRenderer::PAYMENTS_TABLE_BASE_DATA
Constants included from BaseRenderer
Class Method Summary collapse
Methods included from Util::BaseRenderer
box, format_cnpj, format_cpf, format_currency, format_number, page_content_width, page_paper_width, pdf_setup
Methods included from BaseRenderer
Class Method Details
.execute(pdf, data) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/br_invoices_pdf/cfe/renderer/qr_code.rb', line 15 def execute(pdf, data) render_box(pdf) do = (page_paper_width(pdf.page.size), data) (pdf, ) generate_qr_code(pdf, data, ) end end |