Module: BrInvoicesPdf::Nfce::Renderer

Extended by:
Util::PdfRenderer
Defined in:
lib/br_invoices_pdf/nfce/renderer.rb,
lib/br_invoices_pdf/nfce/renderer/header.rb,
lib/br_invoices_pdf/nfce/renderer/totals.rb,
lib/br_invoices_pdf/nfce/renderer/qr_code.rb,
lib/br_invoices_pdf/nfce/renderer/taxes_info.rb,
lib/br_invoices_pdf/nfce/renderer/procon_info.rb,
lib/br_invoices_pdf/nfce/renderer/base_renderer.rb,
lib/br_invoices_pdf/nfce/renderer/payment_forms.rb,
lib/br_invoices_pdf/nfce/renderer/product_table.rb,
lib/br_invoices_pdf/nfce/renderer/fiscal_message.rb,
lib/br_invoices_pdf/nfce/renderer/company_identification.rb,
lib/br_invoices_pdf/nfce/renderer/customer_identification.rb

Defined Under Namespace

Modules: BaseRenderer, CompanyIdentification, CustomerIdentification, FiscalMessage, Header, PaymentForms, ProconInfo, ProductTable, QrCode, TaxesInfo, Totals

Constant Summary collapse

RENDERERS =
[
  CompanyIdentification,
  Header,
  ProductTable,
  Totals,
  PaymentForms,
  TaxesInfo,
  ProconInfo,
  FiscalMessage,
  CustomerIdentification,
  QrCode
].freeze

Constants included from Util::PdfRenderer

Util::PdfRenderer::AUTO_HEIGHT_MOCK

Constants included from Util::BaseRenderer

Util::BaseRenderer::CNPJ_FORMAT, Util::BaseRenderer::CPF_FORMAT, Util::BaseRenderer::PAYMENTS_TABLE_BASE_DATA

Class Method Summary collapse

Methods included from Util::PdfRenderer

generate_pdf, pdf_content

Methods included from Util::BaseRenderer

box, format_cnpj, format_cpf, format_currency, format_number, page_content_width, page_paper_width, pdf_setup

Class Method Details

.pdf(data, options) ⇒ Object



34
35
36
# File 'lib/br_invoices_pdf/nfce/renderer.rb', line 34

def pdf(data, options)
  generate_pdf(data, options, RENDERERS)
end