Class: IsoDoc::IHO::PdfConvert

Inherits:
XslfoPdfConvert
  • Object
show all
Defined in:
lib/isodoc/iho/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

Returns a new instance of PdfConvert.



8
9
10
11
# File 'lib/isodoc/iho/pdf_convert.rb', line 8

def initialize(options)
  @libdir = File.dirname(__FILE__)
  super
end

Instance Method Details

#pdf_stylesheet(docxml) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/isodoc/iho/pdf_convert.rb', line 13

def pdf_stylesheet(docxml)
  case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
  when "standard" then "iho.standard.xsl"
  else
    "iho.specification.xsl"
  end
end