Sha256: fa68b3848c32c9837dd28ea6a47f1a84d1b171b74f51826fcda6fab742bb95b8

Contents?: true

Size: 430 Bytes

Versions: 23

Compression:

Stored size: 430 Bytes

Contents

class HtmlPrinter < ActionPrinter
  #IKKE FÆRDIG
  def do_render(print_job)
    path = print_job.view_template.path
    locals = { resource_class: print_job.entity.constantize, collection: print_job.entity.constantize.find_by_sql( print_job.resources_sql)  }
    of = html_file render_to_string( path, locals: locals )
    %x[ java -jar lib/java_pdf/barcodeprinter.jar #{of.path} #{pdf_file_path} ]
  rescue
    false
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
oxen_printer-0.4.15 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.14 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.13 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.12 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.11 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.9 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.8 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.7 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.5 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.4 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.3 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.2 lib/oxen_printer/html_printer.rb
oxen_printer-0.4.1 lib/oxen_printer/html_printer.rb
oxen_printer-0.3.4 lib/oxen_printer/html_printer.rb
oxen_printer-0.3.3 lib/oxen_printer/html_printer.rb
oxen_printer-0.3.2 lib/oxen_printer/html_printer.rb
oxen_printer-0.3.1 lib/oxen_printer/html_printer.rb
oxen_printer-0.3.0 lib/oxen_printer/html_printer.rb
oxen_printer-0.2.9 lib/oxen_printer/html_printer.rb
oxen_printer-0.2.8 lib/oxen_printer/html_printer.rb