Sha256: 7fd7ff51dc2f7c051e9088b7d737b66cf0385764f4d9ddbfe4f709d6d89646b8
Contents?: true
Size: 688 Bytes
Versions: 8
Compression:
Stored size: 688 Bytes
Contents
class PdfPrinter < ActionPrinter #IKKE FÆRDIG def do_render(print_job,*args) # first we will call super to do the html thing html_path = super # # calls java -jar with the oxen_printer gem lib/java_pdf/barcodeprinter.jar - as in java -jar /Users/walther/Projects/Gems/oxen_printer/lib/java_pdf/barcodeprinter.jar $1 $2 var = %x[ bin/printer_cmd.sh #{html_path} #{pdf_file_path} ] logit :info, "converted the html file to a PDF file: #{pdf_file_path}" true rescue => e logit :error, "Rendering to PDF failed! The error was #{e.message}" false end def file_path pdf_file_path end def get_file_type "application/pdf" end end
Version data entries
8 entries across 8 versions & 1 rubygems