DOC to Any Converter

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)
DOC to Any Converter

Convert text to PDF and control column & layout

  Most often, when working with columns you will want to add multiple columns for text layout, similar to a newspaper. However, printing text file and designing columns is a little hard. But when converting text file to PDF, all those matter can be solved. In this article, I will show you how to convert text to PDF and control column & layout. The following snapshots are about PDF column layout effect, please have a check. When converting text to PDF, you can choose layout as I showed in the following snapshot.

effect of layout

Step 1. Download VeryDOC DOC to Any Converter

  • I use this software to run the conversion. By this software, you can convert most of the printable file to PDF, image and others. If you need to know more about it, please visit its homepage.
  • As this is command line version software when downloading finishes, there will be an zip file. Please extract it to some folder then you can check the elements in it and call executable file in MS Dos Windows.
  • When use this software, please refer to usage and examples.

Step 2. Convert text to PDF and specify layout

  • Usage:   DOC2Any [options] <in-file> [<out-file>]
  • When converting text to PDF by command line, please refer to the following command line templates.
    doc2any.exe C:\input.txt C:\output.pdf
    doc2any.exe C:\*.txt C:\*.pdf
    for %F in (D:\test\*.txt) do "doc2any.exe" "%F" "%~dpnF.pdf"
    By those command line, you can either convert text file single or in batch to PDF file. But for mode, you can write bat file for do the conversion automatically in batch.
  • When you need to convert text to PDF and control column and layout, please add the following parameters in the command line. This software provides 7 modes of layout for you to choose.
     
  • -pagelayout <int>        : Set page layout which is used when opening the document in PDF Readee
      -pagelayout 0: When you need to use viewer's default settings, please add this parameter.
      -pagelayout 1: when you need to convert text to single page, please add this parameter.
      -pagelayout 2: When you need One Column PDF, please use value 2.
      -pagelayout 3: When you need Two Column Left layout, please add value 3.
      -pagelayout 4: When you need  Two Column Right, please add value 4.
      -pagelayout 5: When you need Two Page Left, please add value 5.
      -pagelayout 6: When you need Two Page Right, please use value 6.

Now let us check the conversion effect from the following snapshot. And this PDF file is converted from readme.txt file, you can compare them. 

output PDF file

By this software, you can convert text, MS Dos Windows and other files to PDF and control page layout. During the using, if you have any question, please contact us as soon as possible.

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

Convert doc to PDF and add watermark by command line

  When you need to convert Office file to PDF and add watermark by command line, maybe you can have a free trial of VeryDOC DOC to Any Converter. Meanwhile when you need to do the conversion in batch or together with other applications like Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc, this software also can make it. In the following part, I will show you how to use this software.

Step 1. Download DOC to Any Converter

  • When downloading finishes, there will be a zip file. Please extract it to some folder then you can find readme.txt and executable file. And this is Window application, for now it can not word under Mac or Linux system.
  • During the using, please refer to the usage and examples.

Step 2. Convert doc to PDF and add watermark by command line.

  • Usage:      DOC2Any [options] <in-file> [<out-file>]
  • When you convert doc to PDF and add watermark, please refer to the following command line templates.
  • doc2any.exe -wtext "VeryPDF" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wc "0000FF" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wx 100 -wy 100 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 1 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 2 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 0 -wa 45 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -wh 20 "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -wh 20 -wb -wi -wu -ws "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wf "Arial" -walign 3 -wh 20 -wbox "0,770,612,792" "C:\in.doc"

    Now let us check the related parameters.
    -wtext <string>      : Watermark text on printed document
    wtype <int>             : type of watermark
        0 : normal watermark
        1 : watermark on header
        2 : watermark on footer
      -wf <string>             : font name of watermark
      -wh <int>                : font size of watermark
      -wb                      : specify bold font
      -wi                      : specify an italic font
      -wu                      : specify an underlined font
      -ws                      : specify a strikeout font
      -wa <int>                : angle of watermark

  • When you need to convert doc to PDF and add watermark in batch, this software also can make it for you. Please refer to the following command line templates.
  • doc2any.exe -wtext "Watermark %PageNumber% of %PageCount%" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "Watermark %PageNumber% of %PageCount%" -wpagebegin 10 -wpageend 20 -wpageoffset 100 "C:\in.doc" C:\out.pdf

inoput doc and output PDF

Now let us check the conversion effect from the following snapshot. During the using, if you have any question, please contact us as soon as possible.

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

Convert doc to tiff and set compression mode by command line

   When you need to convert doc to tiff and compress it by command line, maybe you can have a free trial of VeryDOC DOC to Any Converter. Meanwhile after conversion, you can specify width and height, content position and others. It can also help you batch convert MS Office, OpenOffice files to PDF, Postscript, PS, EPS and other image etc. formats.  In the following part, I will show you how to use it.

Step 1. Download DOC to Any Converter

  • As this is command line version software, once downloading finishes, there will be an zip file. Please check readme.txt to know the basic usage and parameters.
  • Then open MS Dos Windows and call the executable file in it. When you run this software, please refer to the usage and examples.

Step 2. Convert doc to tiff and compress it by command line.

  • Usage:  DOC2Any [options] <in-file> [<out-file>] 
  • When you convert doc, docx and other Office files to tiff, please refer to the following command line templates.
  • doc2any.exe -useprinter -xres 300 -yres 300 -bitcount 1 -compression 4 "C:\in.doc" "C:\out.tif"
    By this command line, you can convert doc to tiff using virtual printer and specify bitcount and compression mode.
    doc2any.exe -useoffice 1 -showofficeui "C:\in.doc" "C:\out.tif"
    By this command line, we can use Office to convert doc to tiff and show Office Windows during conversion.
    doc2any.exe -useoffice 1 -useprinter -delay 5o000 "C:\in.doc" "C:\out.pdf"
    This command line has the same functions with the above one  but it can delay some milliseconds before conversion.
    doc2any.exe -multipagetif -killoffice 0 -useprinter "C:\in.doc" C:\out.tif
    By this command line, we can convert doc file to multipage tiff file.
    doc2any.exe -useprinter -compression 88880 "C:\in.doc" C:\out.tif
    This command line can help you convert doc to tiff and compress it by 204x98  G4 ClassF TIFF.
    doc2any.exe -useprinter -compression 88881 "C:\in.doc" C:\out.tif
    doc2any.exe -useprinter -compression 88883 "C:\in.doc" C:\out.tif
    doc2any.exe -multipagetif -useprinter -compression 88880 "C:\in.doc" C:\out.tif
    Same in converting doc to tiff but when compression, it takes different methods.
    for %F in (D:\test\*.doc) do "doc2any.exe" "%F" "%~dpnF.tif"
    This command line can help you write bat file for batch conversion of doc to tiff.

Now let us check the related parameters:
-useprinter              : Convert DOC files to other formats via virtual printer
-multipagetif            : Create multipage TIFF format
-showofficeui            : Show Office Windows during conversion
-compression <int>       : Set compression for TIFF image
    -compression 1     : NONE compression
    -compression 2     : CCITT modified Huffman RLE
    -compression 3     : CCITT Group 3 fax encoding (1d)
    -compression 4     : CCITT Group 4 fax encoding
    -compression 5     : LZW compression
    -compression 6     : OJPEG compression
    -compression 7     : JPEG DCT compression
    -compression 32773 : PACKBITS compression
    -compression 32809 : THUNDERSCAN compression
    -compression 88880 : 204x98  G4 ClassF TIFF
    -compression 88881 : 204x196 G4 ClassF TIFF
    -compression 88882 : 204x98  G3 ClassF TIFF
    -compression 88883 : 204x196 G3 ClassF TIFF
    -compression 88884 : CCITT Group 3 fax encoding (2d)

Now let us check the conversion effect from the following snapshot. During the using, if you have any question, please contact us as soon as possible.

input doc and output tiff

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

How to convert website reports Excel to HTML or PDF formats for presentations?

Question: What is the best tool for converting Excel website reports into html or PDF formats for presentations? We have extensive reports for website data that is calculated and constructed using Excel. I was just wondering what would be the best way to convert these into html or PDF files which can be given to clients, as they would no longer contain all the raw data and equations in the actual excel sheet. Thanks.

Answer: According to your needs, maybe you can have a free trial of software VeryDOC Excel to HTML Converter. By this software, you can either convert Excel to HTML or Excel to PDF through command line.  When converting Excel, this software supports all version MS Excel files like XLS, XLSX. In the following part, I will show you how to use this software.

Step 1. Download Excel to HTML Converter

  • This software is command line version, when downloading finishes, there will be an zip file. Please unzip it and then you can call the executable file in MS Dos Windows.
  • And as this is Windows application, now it can not work under Mac and Linux system.

Step 2. Convert Excel to HTML or Excel to PDF by command line

  • When run conversion, please refer to the usage and examples.
  • Usage:      DOC2Any [options] <in-file> [<out-file>]
  • When you need to convert Excel to HTML or Excel to PDF, please refer to the following command line templates.
    doc2any.exe C:\in.xls C:\out.html
    doc2any.exe C:\in.xls C:\out.pdf

    doc2any.exe C:\in.xlsx C:\out.pdf
    doc2any.exe C:\*.doc C:\*.pdf
    doc2any.exe C:\*.doc C:\*.html
    By above command line templates, you can convert Excel to HTML singly or in batch. Now let us check the conversion effect.

  • When you do the batch conversion, you can either use wild character or bat file.
    for %F in (D:\test\*.xls) do "doc2any.exe" "%F" "%~dpnF.pdf"
    for /r D:\test %F in (*.doc) do "doc2any.exe" "%F" "%~dpnF.pdf"
    By this software, after conversion, all the tables and layout will be kept in output PDF or HTML file. When the output is PDF file formation, you can set password to protect output PDF file content.
  • When you need to set password for the output PDF file, please refer to the following command line templates.
    doc2any.exe -ownerpwd 123 -keylen 2 -encryption 3900 C:\in.doc C:\out.pdf
    Related Parameters:

    openpwd <string>        : Set 'open password' to PDF file
      -ownerpwd <string>       : Set 'owner password' to PDF file
      -keylen <int>            : Key length (40 or 128 bit)
        -keylen 0:  40 bit RC4 encryption (Acrobat 3 or higher)
        -keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
        -keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
      -encryption <int>        : Restrictions

  • When you need to convert Excel to HTML, please make sure that you have Office Excel installed.  If you do not install MS Excel installed, OpenOffice can replace MS Excel when you run the conversion.

By this one software, you can either convert Excel to HTML or Excel to PDF by command line. During the using, if you have any question, please contact us as soon as possible.

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