Class: IsoDoc::Iso::PdfConvert

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

Overview

A Converter implementation that generates 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.



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

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

Instance Method Details

#pdf_stylesheet(docxml) ⇒ Object



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

def pdf_stylesheet(docxml)
  case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
  when "amendment", "technical-corrigendum" then "iso.amendment.xsl"
  else
    "iso.international-standard.xsl"
  end
end