Sha256: d3ee8c14ae76374e3fca65630b61d4ea209f763f91e8a73d949552eb3f392220

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

require "isodoc"
require "isodoc/iho/metadata"

module IsoDoc
  module IHO
    # 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)
        case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
        when "standard" then "iho.standard.xsl"
        else
          "iho.specification.xsl"
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-iho-0.1.2/lib/isodoc/iho/pdf_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-iho-0.1.1/lib/isodoc/iho/pdf_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-iho-0.1.1/lib/isodoc/iho/pdf_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-iho-0.1.2/lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.1.2 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.1.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.1.0 lib/isodoc/iho/pdf_convert.rb