Class: IsoDoc::ITU::PdfConvert

Inherits:
XslfoPdfConvert
  • Object
show all
Defined in:
lib/isodoc/itu/pdf_convert.rb

Overview

A Converter implementation that generates PDF HTML output, and a document schema encapsulation of the document for validation

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ PdfConvert



10
11
12
13
14
# File 'lib/isodoc/itu/pdf_convert.rb', line 10

def initialize(options)
  @libdir = File.dirname(__FILE__)
  @hierarchical_assets = options[:hierarchical_assets]
  super
end

Instance Method Details

#pdf_stylesheet(docxml) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/isodoc/itu/pdf_convert.rb', line 16

def pdf_stylesheet(docxml)
  case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
  when "resolution" then "itu.resolution.xsl"
  when "recommendation-annex" then "itu.recommendation-annex.xsl"
  else
    "itu.recommendation.xsl"
  end
end