Module: BrInvoicesPdf::Cfe::Renderer

Extended by:
Util::PdfRenderer
Defined in:
lib/br_invoices_pdf/cfe/renderer.rb,
lib/br_invoices_pdf/cfe/renderer/header.rb,
lib/br_invoices_pdf/cfe/renderer/totals.rb,
lib/br_invoices_pdf/cfe/renderer/qr_code.rb,
lib/br_invoices_pdf/cfe/renderer/fisco_info.rb,
lib/br_invoices_pdf/cfe/renderer/taxes_info.rb,
lib/br_invoices_pdf/cfe/renderer/base_renderer.rb,
lib/br_invoices_pdf/cfe/renderer/payment_forms.rb,
lib/br_invoices_pdf/cfe/renderer/product_table.rb,
lib/br_invoices_pdf/cfe/renderer/company_identification.rb

Defined Under Namespace

Modules: BaseRenderer, CompanyIdentification, FiscoInfo, Header, PaymentForms, ProductTable, QrCode, TaxesInfo, Totals

Constant Summary collapse

RENDERERS =
[
  CompanyIdentification,
  Header,
  ProductTable,
  Totals,
  PaymentForms,
  TaxesInfo,
  QrCode,
  FiscoInfo
].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



30
31
32
# File 'lib/br_invoices_pdf/cfe/renderer.rb', line 30

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