Sha256: ccfdadfc3af1cecd64db99fd3d510739ca1358e0b443afd7f2ae2c81b2109e70
Contents?: true
Size: 668 Bytes
Versions: 8
Compression:
Stored size: 668 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 case series when "NIST CSWP" then "nist.cswp.xsl" when "NIST CSTS" then "nist.csts.xsl" else "nist.sp.xsl" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems