Sha256: 8771c16e305f65c600b674761adb8f9d6f3168a38cfdae7ac82037ac9d6e5e7c

Contents?: true

Size: 664 Bytes

Versions: 24

Compression:

Stored size: 664 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
        when "plenary", "agenda", "budgetary" 
          "un.plenary.xsl"
        else
          docxml.at(ns("//bibdata/ext/session/*")) ?
            "un.plenary-attachment.xsl" : "un.recommendation.xsl"
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
metanorma-un-0.12.19 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.18 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.17 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.16 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.15 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.14 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.13 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.11 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.10 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.9 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.8 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.7 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.6 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.5 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.4 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.3 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.1 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.12.0 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.11.8 lib/isodoc/un/pdf_convert.rb
metanorma-un-0.11.6 lib/isodoc/un/pdf_convert.rb