Convert HTML Files With Total HTML ConverterX and Ruby

Please, download and install Total HTML ConverterX. Using the sample code below you will be able to convert XLS to PDF, DOC, TXT, etc.

 

  Example Ruby:

require 'win32ole'
c = WIN32OLE.new('HTMLConverter.HTMLConverterX')

src="C:\\test\\test.html";
dest="C:\\test\\test.pdf";

c.convert(src,dest, "-c PDF -log c:\\test\\HTML.log");

if not File.exist?(dest)
  puts c.ErrorMessage
end

If you need examples on other languages please contact us. We will create any example specially for you.