Sha256: eea104095f059bcce62d0b59ea0e744d4ebd03cb526187fd818034e4892e9988

Contents?: true

Size: 608 Bytes

Versions: 8

Compression:

Stored size: 608 Bytes

Contents

require "isodoc"
require_relative "metadata"
require "fileutils"
require_relative "base_convert"

module IsoDoc
  module NIST
    # 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)
        series =  docxml&.at(ns("//bibdata/series/abbreviation"))&.text
        series == "NIST CSWP" ?  "nist.cswp.xsl" : "nist.sp.xsl"
      end
    end
  end
end

Version data entries

8 entries across 6 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-nist-1.1.2/lib/isodoc/nist/pdf_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-nist-1.1.3/lib/isodoc/nist/pdf_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-nist-1.1.2/lib/isodoc/nist/pdf_convert.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/metanorma-nist-1.1.3/lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.1.3 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.1.2 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.1.1 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.1.0 lib/isodoc/nist/pdf_convert.rb