Sha256: 929e7655687e1215f843fd2d4c13f1c1af86af0862ad001133a246ddf75407e3
Contents?: true
Size: 718 Bytes
Versions: 13
Compression:
Stored size: 718 Bytes
Contents
require_relative "base_convert" require "isodoc" module IsoDoc module UN # A {Converter} implementation that generates HTML output, and a document # schema encapsulation of the document for validation # class PdfConvert < IsoDoc::XslfoPdfConvert def initialize(options) @libdir = File.dirname(__FILE__) super end def pdf_stylesheet(docxml) case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text when "plenary", "agenda", "budgetary" "unece.plenary.xsl" else docxml&.at(ns("//bibdata/ext/session/*")) ? "un.plenary-attachment.xsl" : "unece.recommendation.xsl" end end end end end
Version data entries
13 entries across 12 versions & 2 rubygems