class IsoDoc::MPFA::PdfConvert

A {Converter} implementation that generates PDF 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/mpfa/pdf_convert.rb, line 9
def initialize(options)
  @libdir = File.dirname(__FILE__)
  super
end

Public Instance Methods

pdf_stylesheet(docxml) click to toggle source
# File lib/isodoc/mpfa/pdf_convert.rb, line 14
def pdf_stylesheet(docxml)
  doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
  doctype = "standards" unless %w(circular guidelines
  compliance-standards-for-mpf-trustees
  supervision-of-mpf-intermediaries).include? doctype
  "mpfa.#{doctype}.xsl"
end