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