Sha256: 4af1bbfe824a8b5742075f26cdb2e0170163a80ae534db22ac31860fef0b4639

Contents?: true

Size: 590 Bytes

Versions: 33

Compression:

Stored size: 590 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
        when "amendment", "technical-corrigendum" then "iso.amendment.xsl"
        else
          "iso.international-standard.xsl"
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
metanorma-iso-2.9.4 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.9.3 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.9.2 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.9.1 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.9.0 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.9 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.8 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.7 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.6 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.5 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.4 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.3 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.2 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.1 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.8.0 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.7.10 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.7.9 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.7.8 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.7.7 lib/isodoc/iso/pdf_convert.rb
metanorma-iso-2.7.6 lib/isodoc/iso/pdf_convert.rb