Sha256: c53f30c8190c96ec3f1e6ff683c2b79413c48f855048aace0273248eddd437f7
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
require "isodoc" require "fileutils" module IsoDoc module ITU # A {Converter} implementation that generates PDF HTML output, and a # document schema encapsulation of the document for validation class PdfConvert < IsoDoc::XslfoPdfConvert def initialize(options) @libdir = File.dirname(__FILE__) @hierarchical_assets = options[:hierarchical_assets] super end 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" when "technical-report" then "itu.technical-report.xsl" when "technical-paper" then "itu.technical-paper.xsl" else "itu.recommendation.xsl" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems