Class: IsoDoc::Iso::PdfConvert
- Inherits:
-
XslfoPdfConvert
- Object
- XslfoPdfConvert
- IsoDoc::Iso::PdfConvert
- Defined in:
- lib/isodoc/iso/pdf_convert.rb
Overview
A Converter implementation that generates 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.
11 12 13 14 |
# File 'lib/isodoc/iso/pdf_convert.rb', line 11 def initialize() @libdir = File.dirname(__FILE__) super end |
Instance Method Details
#pdf_stylesheet(docxml) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/isodoc/iso/pdf_convert.rb', line 16 def pdf_stylesheet(docxml) case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text when "amendment", "technical-corrigendum" then "iso.amendment.xsl" else "iso.international-standard.xsl" end end |