Sha256: af62f95ad5c9a9ecceea8cfa6d9b231bcb847a80d1244e2a591ae7fb17f1bc7d

Contents?: true

Size: 567 Bytes

Versions: 47

Compression:

Stored size: 567 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 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

47 entries across 47 versions & 2 rubygems

Version Path
metanorma-iho-0.3.8 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.7 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.6 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.5 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.4 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.3 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.2 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.1 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.3.0 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.16 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.15 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.14 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.13 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.12 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.11 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.10 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.9 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.8 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.7 lib/isodoc/iho/pdf_convert.rb
metanorma-iho-0.2.6 lib/isodoc/iho/pdf_convert.rb