task中也改为pdf
This commit is contained in:
parent
c331e5a9c8
commit
9ecb119aa4
|
@ -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} "
|
||||||
|
|
Loading…
Reference in New Issue