Sha256: b8dcea3a8d74f0034882f83155ac7ef5b775b7b2fa2b3476d3a23552da227b9e

Contents?: true

Size: 555 Bytes

Versions: 32

Compression:

Stored size: 555 Bytes

Contents

require "isodoc"

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 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

32 entries across 32 versions & 1 rubygems

Version Path
metanorma-iho-0.6.10 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.9 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.8.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.8 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.7 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.6 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.5 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.4 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.3 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.2 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.0 lib/isodoc/iho/pdf_convert.rb