Split PDF files With PDFSplitterX and Ruby

Please, download and install PDFSplitterX. Using the sample code below you will be able to PDF files.

 

  Example Ruby:

require 'win32ole'
c = WIN32OLE.new('PDFSplitter.PDFSplitterX')

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

c.convert(src,dest, "-c PDF -log c:\\test\\PDFSplitter.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.

Related topics