Sha256: 89ccbca71d933cc3c43f8c0489f8adb157d91c9a46ff25c522377cdf56b01421

Contents?: true

Size: 637 Bytes

Versions: 97

Compression:

Stored size: 637 Bytes

Contents

require_relative "base_convert"
require "isodoc"

module IsoDoc
  module Iso

    # A {Converter} implementation that generates 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 "amendment", "technical-corrigendum" then "iso.amendment.xsl"
        else
          "iso.international-standard.xsl"
        end
      end
    end
  end
end

Version data entries

97 entries across 94 versions & 2 rubygems

Version Path
metanorma-iso-2.5.1 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.5.0 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.8 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.7 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.6 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.5 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.4 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.3 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.2 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.1 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.4.0 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.6 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.5 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.4 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.3 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.2 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.1 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.3.0 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.2.4 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.2.3 lib/isodoc/iso/pdf_convert.rb