Sha256: 34c40accf5a418e2993608191a21db7c99d38fb78567d42c83bd945d1e68b896

Contents?: true

Size: 626 Bytes

Versions: 54

Compression:

Stored size: 626 Bytes

Contents

require "isodoc"
require "fileutils"

module IsoDoc
  module IEEE
    # 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)
        doctype = docxml&.at(ns("//bibdata/ext/subdoctype"))&.text
        if %w(amendment corrigendum erratum).include?(doctype)
          "ieee.amendment.xsl"
        else
          "ieee.standard.xsl"
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
metanorma-ieee-1.3.1 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.3.0 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.14 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.13 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.12 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.11 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.10 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.9 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.8 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.7 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.6 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.5 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.4 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.3 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.2 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.1 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.2.0 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.1.10 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.1.9 lib/isodoc/ieee/pdf_convert.rb
metanorma-ieee-1.1.8 lib/isodoc/ieee/pdf_convert.rb