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.8.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.8.0 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.14 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.13 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.12 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.11 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.10 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.9 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.8 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.7 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.6 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.5 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.4 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.3 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.2 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.7.0 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.13 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.12 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.6.11 lib/isodoc/iho/pdf_convert.rb