Sha256: fee3b353881b2053c59ef312958ee3f8dce3fc20e1b0bc37a5a5adf95c97bbd5

Contents?: true

Size: 1.25 KB

Versions: 15

Compression:

Stored size: 1.25 KB

Contents

module Lipsiadmin
  module Utils
    # This module help you, when you buy the default pdf builder.
    # 
    # Lipsiadmin include a trial fully functional evaluation version, but if you want buy it, 
    # go here: http://pd4ml.com/buy.htm and then put your licensed jar in a directory in your
    # project then simply calling this:
    # 
    #   Lipsiadmin::Utils::PdfBuilder.jars_path = "here/is/my/licensed/pd4ml"
    #   Lipsiadmin::Utils::PdfBuilder.view_path = "keep/template/in/other/path"
    # 
    # you can use your version without any problem.
    # 
    # By default Lipsiadmin will look into your "vendor/pd4ml" and if:
    # 
    # * pd4ml.jar
    # * ss_css2.jar
    # 
    # are present will use it
    #
    class PdfBuilder
      if File.exist?("#{Rails.root}/vendor/pd4ml/pd4ml.jar") &&
         File.exist?("#{Rails.root}/vendor/pd4ml/ss_css2.jar")

        @@jars_path = "#{Rails.root}/vendor/pd4ml"
      else
        @@jars_path = "#{File.dirname(__FILE__)}/../../resources/pd4ml"
      end
      
      @@pd4ruby_path = "#{File.dirname(__FILE__)}/../../resources/pd4ml/ruby"
      @@view_path    = "#{RAILS_ROOT}/app/views/pdf"
      
      cattr_accessor :jars_path
      cattr_accessor :pd4ruby_path
      cattr_accessor :view_path
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lipsiadmin-5.1.6 lib/utils/pdf_builder.rb
lipsiadmin-5.1.5 lib/utils/pdf_builder.rb
lipsiadmin-5.1.4 lib/utils/pdf_builder.rb
lipsiadmin-5.1.3 lib/utils/pdf_builder.rb
lipsiadmin-5.1.2 lib/utils/pdf_builder.rb
lipsiadmin-5.1.1 lib/utils/pdf_builder.rb
lipsiadmin-5.1.0 lib/utils/pdf_builder.rb
lipsiadmin-5.0.9 lib/utils/pdf_builder.rb
lipsiadmin-5.0.8 lib/utils/pdf_builder.rb
lipsiadmin-5.0.7 lib/utils/pdf_builder.rb
lipsiadmin-5.0.6 lib/utils/pdf_builder.rb
lipsiadmin-5.0.5 lib/utils/pdf_builder.rb
lipsiadmin-5.0.4 lib/utils/pdf_builder.rb
lipsiadmin-5.0.2 lib/utils/pdf_builder.rb
lipsiadmin-5.0.3 lib/utils/pdf_builder.rb