Class: IsoDoc::NIST::PdfConvert
- Inherits:
-
XslfoPdfConvert
- Object
- XslfoPdfConvert
- IsoDoc::NIST::PdfConvert
- Defined in:
- lib/isodoc/nist/pdf_convert.rb
Overview
A Converter implementation that generates PDF HTML output, and a document schema encapsulation of the document for validation
Instance Method Summary collapse
-
#initialize(options) ⇒ PdfConvert
constructor
A new instance of PdfConvert.
- #pdf_stylesheet(docxml) ⇒ Object
Constructor Details
#initialize(options) ⇒ PdfConvert
Returns a new instance of PdfConvert.
10 11 12 13 |
# File 'lib/isodoc/nist/pdf_convert.rb', line 10 def initialize() @libdir = File.dirname(__FILE__) super end |
Instance Method Details
#pdf_stylesheet(docxml) ⇒ Object
15 16 17 18 19 20 21 22 |
# 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 |