task中也改为pdf

This commit is contained in:
guange 2015-06-03 17:43:42 +08:00
parent c331e5a9c8
commit 9ecb119aa4
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace :office do
unless Dir.exist?(saved_path) unless Dir.exist?(saved_path)
Dir.mkdir(saved_path) Dir.mkdir(saved_path)
end end
convered_file = File.join(saved_path, a.disk_filename + ".html") convered_file = File.join(saved_path, a.disk_filename + ".pdf")
office = Trustie::Utils::Office.new(a.diskfile) office = Trustie::Utils::Office.new(a.diskfile)
if office.conver(convered_file) if office.conver(convered_file)
puts "process ok: #{convered_file} " puts "process ok: #{convered_file} "