Class: Giblish::PdfConverter

Inherits:
DocConverter show all
Defined in:
lib/giblish/docconverter.rb

Overview

Converts adoc into pdf

Constant Summary

Constants inherited from DocConverter

DocConverter::COMMON_CONVERTER_OPTS, DocConverter::DEFAULT_ATTRIBUTES

Instance Attribute Summary

Attributes inherited from DocConverter

#converter_options, #paths

Instance Method Summary collapse

Methods inherited from DocConverter

#convert, #convert_str

Constructor Details

#initialize(paths, deployment_info, options) ⇒ PdfConverter

Returns a new instance of PdfConverter.


277
278
279
280
281
282
283
284
285
# File 'lib/giblish/docconverter.rb', line 277

def initialize(paths, deployment_info, options)
  super paths, deployment_info, options
  require "asciidoctor-mathematical"

  # identify ourselves as a pdf converter
  add_backend_options({ backend: "pdf", fileext: "pdf" })
  # setup the attributes specific for this converter
  add_backend_attributes(setup_pdf_attribs)
end