class IsoDoc::UN::PdfConvert
A {Converter} implementation that generates HTML output, and a document schema encapsulation of the document for validation
Public Class Methods
new(options)
click to toggle source
Calls superclass method
# File lib/isodoc/un/pdf_convert.rb, line 11 def initialize(options) @libdir = File.dirname(__FILE__) super end
Public Instance Methods
pdf_stylesheet(docxml)
click to toggle source
# File lib/isodoc/un/pdf_convert.rb, line 16 def pdf_stylesheet(docxml) case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text when "plenary", "agenda", "budgetary" "un.plenary.xsl" else docxml&.at(ns("//bibdata/ext/session/*")) ? "un.plenary-attachment.xsl" : "un.recommendation.xsl" end end