Sha256: 4348bb0fc9cf1c5bf41dd9fe57701fe7500561426a9029236e6001e5ff9d755c

Contents?: true

Size: 682 Bytes

Versions: 11

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
        "mpfd.#{doctype}.xsl"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
metanorma-mpfa-0.5.13 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.12 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.11 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.10 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.9 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.8 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.7 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.6 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.5 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.4 lib/isodoc/mpfa/pdf_convert.rb
metanorma-mpfa-0.5.3 lib/isodoc/mpfa/pdf_convert.rb