Sha256: cc8f694fd782f3f9103da75a1f05bbd4a45673f52234bd0faa803aa23801c4fa

Contents?: true

Size: 627 Bytes

Versions: 24

Compression:

Stored size: 627 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[:hierarchicalassets]
        super
      end

      def pdf_stylesheet(_docxml)
        if File.exist?(File.join(@libdir, "itu.#{@doctype}.xsl"))
          "itu.#{doctype}.xsl"
        else
          "itu.recommendation.xsl"
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
metanorma-itu-2.5.4 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.5.3 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.5.2 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.5.1 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.5.0 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.13 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.12 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.11 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.9 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.8 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.7 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.6 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.5 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.4 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.3 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.2 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.1 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.4.0 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.3.7 lib/isodoc/itu/pdf_convert.rb
metanorma-itu-2.3.6 lib/isodoc/itu/pdf_convert.rb