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.6.6 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.5 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.4 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.3 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.2 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.1 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.6.0 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.14 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.13 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.12 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.10 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.9 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.8 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.7 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.6 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.5 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.4 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.3 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.2 lib/isodoc/ogc/pdf_convert.rb
metanorma-ogc-2.5.1 lib/isodoc/ogc/pdf_convert.rb