Run doc2any.exe from Windows Service and without MS Office installed

Dear Support!

I'm evaluating Office to Any Converter to our purpose and I have two questions:

- It works in batch mode correctly and I'm satisfied with the result. But if I try to use it in Hot Directories mode, no any file is produced in output directory and return code 4 appears in logs. What could be the problem? (You can find the log at the end of this message.)

- We need to convert office documents to PDF on a server computer without user intervention. Is there any way to run the software as a Windows service without logging on to the computer or execute the conversion in command prompt mode called by other application or scheduled batch script?

[2013-01-26 22:15:20] [System Message] Monitor Start
[2013-01-26 22:16:20] Waiting until file be created completely...
[2013-01-26 22:16:20] Wait finished, time=16ms (0.02s)...
[2013-01-26 22:16:20] "-rotate" "0" -parent 5440298 "C:\__Xls2Pdf\VeryPdf\Input\Book3.xlsx" "C:\__Xls2Pdf\VeryPdf\Output\Book3"
[2013-01-26 22:16:22] [OK] Converter return code = 4
[2013-01-26 22:16:50] Waiting until file be created completely...
[2013-01-26 22:16:50] Wait finished, time=16ms (0.02s)...
[2013-01-26 22:16:50] "-rotate" "0" -parent 5440298 "C:\__Xls2Pdf\VeryPdf\Input\offer wi7682.docx" "C:\__Xls2Pdf\VeryPdf\Output\offer wi7682"
[2013-01-26 22:16:51] [OK] Converter return code = 4
[2013-01-26 22:16:51] Waiting until file be created completely...
[2013-01-26 22:16:51] Wait finished, time=0ms (0.00s)...
[2013-01-26 22:16:51] "-rotate" "0" -parent 5440298 "C:\__Xls2Pdf\VeryPdf\Input\Screen.jpg" "C:\__Xls2Pdf\VeryPdf\Output\Screen"
[2013-01-26 22:16:52] [OK] Converter return code = 4
[2013-01-26 22:16:52] Waiting until file be created completely...
[2013-01-26 22:16:52] Wait finished, time=15ms (0.01s)...
[2013-01-26 22:16:53] "-rotate" "0" -parent 5440298 "C:\__Xls2Pdf\VeryPdf\Input\Specification extension for RU HCPO_Changes.doc" "C:\__Xls2Pdf\VeryPdf\Output\Specification extension for RU HCPO_Changes"
[2013-01-26 22:16:53] [OK] Converter return code = 4
[2013-01-26 22:39:09] [System Message] Monitor Start
[2013-01-26 22:39:39] Waiting until file be created completely...

Best regards,
Customer
---------------------------------------
Thanks for leaving a message for us.

According to your needs, I guess maybe you can have a free trial of this software:

VeryDOC DOC to Any Converter
https://www.verydoc.com/doc-to-any.html

During the using, if you have any question, please contact us as soon as possible.

VeryDOC
---------------------------------------
Hi,

Thank you for your answer.

I'm trying command line and SDK version (C#) of VeryDOC DOC to Any Converter to convert MS Office files to PDF, and I have some further questions:

- In the case of command line version if I try to use the -wtext option to embed custom footer as a watermark, the "Please purchase VeryDOC EMF To Vector Converter on https://www.verydoc.com/ to remove this watermark" message appears in the output PDF file, and the content coming from the input file is missing. (Without -wtext option,the PDF is generated with the appropriate content. Watermark and input file content appears correctly in the case of SDK version.) May I need EMF To Vector Converter to do this?

- Is it possible to use Cyrillic letters in watermarks? I tried it with SDK version from C# and only question marks appeared in the PDF in the place of Cyrillic letters of watermark. (Cyrillic letters coming from input file appeared correctly.)

- Is it possible to convert MS Office .doc, .docx, .xls, .xlsx files to PDF with this component without MS Office installed? (I guess, "-useoffice 0" option should work this way.)

- Is it possible to put more the one line of watermark into the PDF? If yes, how?

Best regards,
Customer
---------------------------------------
>>- In the case of command line version if I try to use the -wtext option to embed custom footer as a watermark, the "Please purchase VeryDOC EMF To
>>Vector Converter on
https://www.verydoc.com/ to remove this watermark"
>>message appears in the output PDF file, and the content coming from the
>>input file is missing. (Without -wtext option,the PDF is generated with the
>>appropriate content. Watermark and input file content appears correctly in
>>the case of SDK version.) May I need EMF To Vector Converter to do this?

This is a limitation in demo version, after you purchased the product, please send to us your Order ID, we will arrange our engineer to send the latest version to you asap, the latest version hasn't this problem.

>>- Is it possible to use Cyrillic letters in watermarks? I tried it with
>>SDK version from C# and only question marks appeared in the PDF in the
>>place of Cyrillic letters of watermark. (Cyrillic letters coming from
>>input file appeared correctly.)

The current version is not support Cyrillic letters in watermarks, however, if you need this function, we can develop it to you at additional cost, please feel free to let us know if you are interest in this solution.

>>- Is it possible to convert MS Office .doc, .docx, .xls, .xlsx files to
>>PDF with this component without MS Office installed? (I guess,
>>"-useoffice 0" option should work this way.)

Yes, you can install OpenOffice to instead of MS Office, our doc2any does support OpenOffice automatically.

>>- Is it possible to put more the one line of watermark into the PDF? If yes, how?

You can use -watermarkfile to add more watermarks, for example,

-watermarkfile <string> : a .ini file which contain information for multiple watermarks

doc2any.exe -watermarkfile "%CD%\watermark.ini" "%CD%\example.doc" "%CD%\_watermark.pdf"

please look at a sample watermark.ini file in doc2any download package.

VeryDOC
---------------------------------------
Dear Support Team,

We would like to convert doc, docx, xls, xlsx, rtf and txt files to PDF without MS Office installed. According to readme.txt of doc2any_cmd.zip (demo version downloaded from https://www.verydoc.com/doc-to-any.html ): "-useoffice 0: Don't use MS Office to convert DOC,DOCX,RTF,TXT,PPT,PPTX,XLS,XLSX formats", so if I understand correctly, doc2any.exe should be able to do this.

I did some tests on a computer without MS Office installed using the "-useoffice 0" option and without it and I found the followings:

- Doc file was converted successfully regardless "-useoffice 0" was specified or not. A warning message appeared in both cases: "Please install MS Office product in order to convert MS Office documents!!!"

- Conversion of docx file had to be aborted in both cases because 15 minutes was not enough for it on a very simple document. ("Please install MS Office product in order to convert MS Office documents!!!" appeared as well.)

- xls, xslx files: Conversion failed in all cases with "result=ERROR TickCount = 0ms(0.00s), Result = 0".

- Rtf file was converted successfully regardless "-useoffice 0" was specified or not.

- Txt file was converted successfully without "-useoffice 0" but it failed with "-useoffice 0".

(All of the files were converted successfully on a computer with MS Office installed without "-useoffice 0".)

- What can be the cause of the problems experienced?

- Will the commercial version be able to convert all these files to PDF without MS Office installed?

- What are the pros and cons of using the service mode? Could you send some details about it?

Best regards,
Customer
---------------------------------------
>>I did some tests on a computer without MS Office installed using the "-useoffice 0" option and without it and I found the followings:
>>- Doc file was converted successfully regardless "-useoffice 0" was specified or not. A warning message appeared in both cases: "Please install MS Office product in order to convert MS Office documents!!!"
>>- Rtf file was converted successfully regardless "-useoffice 0" was specified or not.

Yes, our doc2any.exe does support DOC and RTF document formats without MS Word installed.

>>- Txt file was converted successfully without "-useoffice 0" but it failed with "-useoffice 0".

Our doc2any.exe does support txt format too, we will research the problem why it is failed with "-useoffice 0" parameter.

>>- Conversion of docx file had to be aborted in both cases because 15 minutes was not enough for it on a very simple document. ("Please install MS Office product in order to convert MS Office documents!!!" appeared as well.)
>>- xls, xslx files: Conversion failed in all cases with "result=ERROR TickCount = 0ms(0.00s), Result = 0".

If you wish convert DOCX, XLS, XLSX, PPT, PPTX document formats to PDF files, you need install OpenOffice, once you installed OpenOffice application, our doc2any.exe will call OpenOffice to render these document formats to PDF files silently.

>>- What can be the cause of the problems experienced?
>>- Will the commercial version be able to convert all these files to PDF without MS Office installed?

You need install OpenOffice to your server, our doc2any.exe will call OpenOffice to render these document formats to PDF files at background.

>>- What are the pros and cons of using the service mode? Could you send some details about it?

Yes, you can call doc2any.exe from your service to do the batch conversion, that's no problem. But you need set your service work at interactive mode.

VeryDOC

Remark

>>Can DocToAny work without the need for user to install MS Office?

Yes, our DOC to Any Converter Command Line does convert office documents to PDF files without MS Office installed. DOC to Any Converter Command Line will work by following solutions:

1. If your system has MS Office 2007 + PDF&XPS addon installed, DocToAny will use PDF&XPS addon to save MS Office documents to PDF and XPS files,

2. If your system has MS Office installed but without PDF&XPS addon, DocToAny will use MS Office to print documents to PDF and XPS files,

3. If your system hasn't MS Office installed, but have OpenOffice installed, DocToAny will use OpenOffice to convert documents,

4. If your system hasn't both MS Office and OpenOffice installed, DocToAny will use ourselves’ DOC/RTF render to convert DOC and RTF formats to other formats, but doc2any will not support PPT and XLS formats at this time.

In general, you can do following conversions if your system hasn't MS Word and OpenOffice installed,

1. RTF to HTML without MS Word or OpenOffice,
2. RTF to DOC without MS Word or OpenOffice,
3. RTF to PDF without MS Word or OpenOffice,
4. DOC to HTML without MS Word or OpenOffice,
5. DOC to RTF without MS Word or OpenOffice,
6. DOC to PDF without MS Word or OpenOffice,

If you need convert DOCX, PPT, PPTX, XLS, XLSX document formats to PDF or XPS format, you need install MS Office or OpenOffice.

VeryPDF

---------------------------------------

We have installed a fresh Windows XP system just now, tested doc2any.exe with OpenOffice application, we can convert all office documents (DOC, DOCX, XLS, XLSX, PPT, PPTX, RTF) to PDF files without any problem,

DOC -> PDF, OK, with only OpenOffice installed
RTF -> PDF, OK, with only OpenOffice installed
XLS -> PDF, OK, with only OpenOffice installed
PPT -> PDF, OK, with only OpenOffice installed
XLSX-> PDF, OK, with only OpenOffice installed
PPTX-> PDF, OK, with only OpenOffice installed
DOCX-> PDF, OK, with only OpenOffice installed

We are using following command line,

doc2any.exe Z:\doc2any_cmd\example.rtf Z:\doc2any_cmd\example.rtf.pdf
doc2any.exe Z:\doc2any_cmd\example.doc Z:\doc2any_cmd\example.doc.pdf
doc2any.exe Z:\doc2any_cmd\example.docx Z:\doc2any_cmd\example.docx.pdf
doc2any.exe Z:\doc2any_cmd\example.xls Z:\doc2any_cmd\example.xls.pdf
doc2any.exe Z:\doc2any_cmd\example.xlsx Z:\doc2any_cmd\example.xlsx.pdf
doc2any.exe Z:\doc2any_cmd\example.ppt Z:\doc2any_cmd\example.ppt.pdf
doc2any.exe Z:\doc2any_cmd\example.pptx Z:\doc2any_cmd\example.pptx.pdf

We noticed the Java is not installed in your system,

image

you may download and install JRE from following web page,

http://java.com/en/download/manual.jsp

after you installed JRE, you can run doc2any.exe to convert office documents to PDF files with OpenOffice properly.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

One Reply to “Run doc2any.exe from Windows Service and without MS Office installed”

  1. Hello

    I would like to test the verydoc product, conversion from office to PDF.

    I downloaded the doc2any_sdk.zip

    but when running the vb dot net version I’m getting this error message

    Dim VeryPDFCom As Object = CreateObject(“VeryPDF.doc2anyCom”)

    *Impossible to create the activex object*

    Customer
    —————————–
    We apologize for any inconvenience this may have caused to you, we recently experienced an Email Server Delay problem, so we couldn’t see your email in time, we are feel really sorry for this matter.

    For your question, please run a cmd window by administrator privilege, and then run following command line to register doc2anyCom.exe into your system,

    doc2anyCom.exe /regserver

    after you register it successful, you can call “VeryPDF.doc2anyCom” from your source code without any problem.

    VeryDOC

    [Reply]

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!