Sha256: e9ffc4631af27d600f9893cff947197a23b81ed763d231615e21c5b9dd3dcbf8

Contents?: true

Size: 580 Bytes

Versions: 13

Compression:

Stored size: 580 Bytes

Contents

require "isodoc"
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

13 entries across 13 versions & 2 rubygems

Version Path
metanorma-nist-1.2.11 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.10 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.9 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.8 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.7 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.6 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.5 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.4 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.3 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.2 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.1 lib/isodoc/nist/pdf_convert.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/metanorma-nist-1.2.0/lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.0 lib/isodoc/nist/pdf_convert.rb