class IsoDoc::Iso::PdfConvert

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

Public Class Methods

new(options) click to toggle source
Calls superclass method
# File lib/isodoc/iso/pdf_convert.rb, line 11
def initialize(options)
  @libdir = File.dirname(__FILE__)
  super
end

Public Instance Methods

pdf_stylesheet(docxml) click to toggle source
# 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