Sha256: e33f227f7c8bd9860fc5035e5f29e04b5c7c83b53c4c2f9c7567a45d7a2bfea1
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 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 "recommendation-supplement" then "itu.recommendation-supplement.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metanorma-itu-1.2.13 | lib/isodoc/itu/pdf_convert.rb |