Sha256: 66e6bccc71b59000b8187821577260312ad01edcb691155638dabab23375cde0
Contents?: true
Size: 682 Bytes
Versions: 35
Compression:
Stored size: 682 Bytes
Contents
require_relative "base_convert" require "isodoc" module IsoDoc module MPFA # A {Converter} implementation that generates PDF HTML output, and a # document schema encapsulation of the document for validation class PdfConvert < IsoDoc::XslfoPdfConvert def initialize(options) @libdir = File.dirname(__FILE__) super end 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 end end end
Version data entries
35 entries across 35 versions & 1 rubygems