Sha256: faa133e0c765fa8fa95fa5fbb8ebaf10e6ebe60c7e6f88394a88d2e4c19df8c3

Contents?: true

Size: 795 Bytes

Versions: 26

Compression:

Stored size: 795 Bytes

Contents

require_relative "base_convert"
require "isodoc"

module IsoDoc
  module Ogc
    # 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__)
        super
      end

      def pdf_stylesheet(_docxml)
        %w(abstract-specification-topic best-practice draft-standard
           change-request-supporting-document community-practice
           community-standard discussion-paper engineering-report policy
           reference-model release-notes standard user-guide test-suite
           white-paper).include? @doctype or @doctype = "other"
        "ogc.#{@doctype}.xsl"
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
metanorma-ogc-2.5.0 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.4.9 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.4.7 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.4.6 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.4.3 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.4.2 lib/isodoc/ogc/pdf_convert.rb