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