Convert Doc files With Total Doc ConverterX and Perl

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

 

  Example Perl:

use Win32::OLE;

my $src="C:\\test\\test.docx";
my $dest="C:\\test\\test.pdf";

my $c = CreateObject Win32::OLE 'DocConverter.DocConverterX';
$c->convert($src,$dest, "-c pdf  -log c:\\test\\Doc.log");
print $c->ErrorMessage if -e $dest;
If you need examples on other languages please contact us. We will create any example specially for you.

Related topics