ensure pdf path is there

This commit is contained in:
John Bintz 2013-11-16 12:41:21 -05:00
parent e9b60b622f
commit cf9b2c224f

View File

@ -78,6 +78,8 @@ module SVGGVS
end
end
Pathname(context.session.pdf_target).parent.mkpath
system "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=#{context.session.pdf_target} -dBATCH #{pages.join(" ")}"
end