Sha256: 731ae1f9b229a5d19ed5a48f4e94e045aa4b21e0e6bea23325d14c7fa6fbfbd4

Contents?: true

Size: 723 Bytes

Versions: 9

Compression:

Stored size: 723 Bytes

Contents

require "isodoc"
require "fileutils"

module IsoDoc
  module ITU
    # 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__)
        @hierarchical_assets = options[:hierarchical_assets]
        super
      end

      def pdf_stylesheet(docxml)
        case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
        when "resolution" then "itu.resolution.xsl"
        when "recommendation-annex" then "itu.recommendation-annex.xsl"
        else
          "itu.recommendation.xsl"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
metanorma-itu-1.2.7 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.6 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.5 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.4 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.3 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.2 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.1 lib/isodoc/itu/pdf_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-itu-1.2.0/lib/isodoc/itu/pdf_convert.rb
metanorma-itu-1.2.0 lib/isodoc/itu/pdf_convert.rb