Class: IsoDoc::ITU::PdfConvert
- Inherits:
-
XslfoPdfConvert
- Object
- XslfoPdfConvert
- IsoDoc::ITU::PdfConvert
- Defined in:
- lib/isodoc/itu/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
10 11 12 13 14 |
# File 'lib/isodoc/itu/pdf_convert.rb', line 10 def initialize() @libdir = File.dirname(__FILE__) @hierarchical_assets = [:hierarchical_assets] super end |
Instance Method Details
#pdf_stylesheet(docxml) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/isodoc/itu/pdf_convert.rb', line 16 def pdf_stylesheet(docxml) case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text when "resolution" then "itu.resolution.xsl" when "recommendation-annex" then "itu.recommendation-annex.xsl" else "itu.recommendation.xsl" end end |