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
Returns a new instance of PdfConvert.
9 10 11 12 13 |
# File 'lib/isodoc/itu/pdf_convert.rb', line 9 def initialize() @libdir = File.dirname(__FILE__) @hierarchical_assets = [:hierarchicalassets] super end |
Instance Method Details
#pdf_stylesheet(_docxml) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/isodoc/itu/pdf_convert.rb', line 15 def pdf_stylesheet(_docxml) if File.exist?(File.join(@libdir, "itu.#{@doctype}.xsl")) "itu.#{doctype}.xsl" else "itu.recommendation.xsl" end end |