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