How to call doc2any.exe from java?
In this article, I will take converting xls to swf for example to show you how to call doc2any from java. This way is also helpful for converting all the printable file to PDF, image or others when you need to do the conversion together with other application like java, c# or others. The full name of doc2any is VeryDOC DOC to Any Converter which was developed by VeryPDF software company. If you would like to have a free trial, you can download it to your PC, here is the link for you,http://www.verydoc.com/images/download2.gif. If you need to know more about it, you can visit its official homepage.
public class FileConversion
public static void main(String args)throws IOException
Runtime runTime = Runtime.getRuntime();
Process process = runTime.exec("\"C:\\Documents and Settings\\admin\\My Documents\\Downloads\\doc2any_cmd\\doc2any_cmd\\doc2any.exe\" \"-useprinter\" \"-useoffice\" \"1\" \"C:\\example.xls\" \"C:\\pavan.swf\"");
BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
while((line=input.readLine()) != null)
If you need to know more about this conversion or other file formats conversion, you can contact us by the ways supported on this website.
- How to call doc2any.exe from web application to convert Office documents include DOC, DOCX, XLS, XLSX, PPT, PPTX, ODT etc. documents to PDF files?
- How to convert from Office documents to PDF files from scheduled task?
- Failed to run doc2any.exe from a schedule job, the schedule job is being run "with highest privileges" on Server 2016
- How to convert from XLS, XLSX, DOC, DOCX, PPT, PPTX, PPS, PDF, TXT, CSV, FLV formats to Flash SWF files?
- useoffice and nooffice options in doc2any.exe application. How can doc2any.exe to determine MS Office, OpenOffice and without Office automatically?
- Convert RTF, DOC, DOCX to DOC, DOCX, RTF, ODT, HTML, MHTML formats without MS Office and OpenOffice
- VeryDOC DOC to Any Converter Command Line v3.5 Release Notes. Convert Word to PDF without Office and OpenOffice.
- VeryDOC has Released DOC to Any Converter Command Line v3.0 today
- Failed to call doc2any.exe from C# or VB.NET source code
- Run doc2any.exe from Windows Service and without MS Office installed
- Command line tool for generating PDF from various document types?
- An easy way to convert doc to fax
- How to convert MS Office 2010 pptx to gif in batches
- Convert txt to pdf and set pdf password of user
- How to check MS Word password and convert it to PDF?
This entry was posted in DOC to Any Converter
and tagged doc2any
, xls to swf
. Bookmark the permalink