class IsoDoc::NIST::PdfConvert
A {Converter} implementation that generates PDF HTML output, and a document schema encapsulation of the document for validation
Public Class Methods
new(options)
click to toggle source
Calls superclass method
# File lib/isodoc/nist/pdf_convert.rb, line 10 def initialize(options) @libdir = File.dirname(__FILE__) super end
Public Instance Methods
pdf_stylesheet(docxml)
click to toggle source
# File lib/isodoc/nist/pdf_convert.rb, line 15 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