DOC to Any Converter

Convert text to tiff and compress tiff by CCITT method through command line

      In this article, we will talk about how to convert text to tiff and compress tiff file by CCITT compression method through command line. The software I used here is VeryDOC DOC to Any Converter, which is command line Windows application. By this software, you can convert all the Office, OpenOffice and others editable files to PDF, image and others. For more information, please check homepage of DOC to Any Converter. In the following part, I will put all the effort on showing how to convert text to TIFF and compress it.

First of all, download DOC to Any Converter

  • Please note all the VeryDOC software is clear and free downloading. So you can rest assured to try and text this software free hundreds of times.
  • When downloading finishes, there will be a zip file. All you need to do is that extract it to folders and then call the executable file in MS Dos Windows.

Secondly, convert text to tiff and set compression modes.

  • When you run the conversion, please obey rules and syntax of this software or else the conversion may fail.
  • Here is the usage:  DOC2Any [options] <in-file> [<out-file>]
  • When converting text to tiff and set compression modes, please refer to the following command line templates.
  • doc2any.exe -multipagetif  -useprinter "C:\in.txt" C:\out.tif
    By this command line,we can convert text file to multipage tiff file using virtual printer.
    doc2any.exe -multipagetif -bitcount 1 -xres 300 -yres 300 "C:\in.txt" C:\out.tif
    By this command line, we can specify output tiff bitcount  as 1, specify resolution in X and Y directions.
    doc2any.exe -useprinter -compression 88880 "C:\in.txt" C:\out.tif
    doc2any.exe -compression 88881 "C:\in.txt" C:\out.tif
    doc2any.exe -useprinter -compression 88883 "C:\in.txt" C:\out.tif
    doc2any.exe -multipagetif -useprinter -compression 88880 "C:\in.txt" C:\out.tif
    By those above command line templates, we can convert text to tiff and specify compression method. Now let us check the compression modes from the following parameters.

-xres <int>              : Set X resolution to image file
-yres <int>              : Set Y resolution to image file
-bitcount <int>          : Set color depth for image 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)

Up to now, maybe you can know how to convert text to tiff and set compress mode according to your needs. During the using, if you have any question, please contact us as soon as possible.

DOC to Any Converter

How to convert Web URL to PDF and set watermark through command line?

   In this article, VeryDOC will show you how to convert URL to PDF through command line and set watermark on output PDF file. The software I use here is VeryDOC DOC to Any Converter, by which we can also convert local website, HTML, MHTML to PDF. If you need to run the conversion through Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. there is also corresponding version available for you. For more information about DOC to Any Converter, please visit its homepage. In the following part, I will show detail steps about converting URL to PDF and set watermark.

Step 1. Download DOC to Any Converter

  • Please note this is Window application, it can not work under Mac or Linux system. But it supports most of Window system both of 32-bit and 64-bit.
  • When downloading finishes, there will be a zip file. Please extract it to some folder then we can find the executable file in MS Dos Windows.

Step 2. Convert URL to PDF and set watermark

  • When you run the conversion, please refer to the usage of this software and follow examples.
  • Usage:    DOC2Any [options] <in-file> [<out-file>]
  • When you need to convert URL to PDF and set watermark, please refer to the following command line templates.
  •    doc2any.exe -wtext "VeryDOC" https://www.verydoc.com C:\out.pdf
       doc2any.exe -wtext "VeryDOC" -wc "0000FF" "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wx 100 -wy 100 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wtype 1 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wtype 2 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wtype 0 -wa 45 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wf "Arial" "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "DOC to Any Converter" -wf "Arial" -wh 20 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "VeryDOC" -wf "Arial" -wh 20 -wb -wi -wu -ws "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "VeryDOC" -wf "Arial" -walign 3 -wh 20 -wbox "0,770,612,792" "https://www.verydoc.com/oc" C:\out.pdf
    By above command line, we can convert online URL to PDF and add various watermark. When you need to add page number for the output PDF file as watermark.
       doc2any.exe -wtext "Watermark %PageNumber% of %PageCount%" "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "Watermark %PageNumber% of %PageCount%" -wpagebegin 10 -wpageend 20 -wpageoffset 100 "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "Watermark %PageNumberRoman% of %PageCountRoman%" "https://www.verydoc.com/" C:\out.pdf
       doc2any.exe -wtext "Watermark %PageNumberRoman2% of %PageCountRoman2%" "https://www.verydoc.com/" C:\out.pdf

Now let us check related parameters about adding watermark.
-wtext <string>          : Watermark text on printed document
    -wtext does support following dynamic values:
    %PageCount%, %PageNumber%, %PageCountRoman%, %PageCountRoman2%,
    %PageNumberRoman%, %PageNumberRoman2%, %Author%, %Keywords%,
    %Subject%, %Title%, %Filename%, %Date%, %Time%
  -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
  -wbox <string>           : a rectangle to output formatted text, it is only useful for "-walign"

Please check more parameters in readme.txt file as I can not list all of them here. 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.

output PDF from doc2any website
                  This is from Doc to Any Website.

DOC to Any Converter

Office to PCL Command Line Converter

    When you need to convert Office files, OpenOffice file to PCL by command line, this article will be helpful for you. Here the software I use is named as VeryDOC DOC to Any Converter, which also can be used to convert Office file to PCL and add watermark in various aspects. If you need to know more about this software, please visit its homepage. In the following part, I will show you how to convert Office file to PCL through command line.

Step 1. Download Office to PCL Converter

  • When downloading finishes, there will be a zip file, which has been compressed for easy downloading and uploading. Please unzip file and then you can find the executable file, help documents, examples and all you need as command line software.
  • Please note now this software only can work under Windows system both 32-bit and 64-bit. If you need to use Mac, or Linux version, please contact us.

Step 2. Convert Office file to PCL

  • Here is the usage for your reference: DOC2Any [options] <in-file> [<out-file>]
  • When you need to convert Office file to PCL, please refer to the following command line templates.

    doc2any.exe C:\in.doc C:\out.pcl
    doc2any.exe C:\in.ppt C:\out.pcl
    doc2any.exe C:\in.xls C:\out.pcl
    doc2any.exe C:\in.docx C:\out.pcl
    doc2any.exe C:\in.pptx C:\out.pcl
    doc2any.exe C:\in.xlsx C:\out.pcl
    doc2any.exe C:\*.doc C:\*.pcl

When converting OpenOffice file to pcl, simply change the input file format. During the conversion, there is no limit of input file language as it supports English, French, German, Italian, Chinese Simplified, Chinese Traditional, Czech, Danish,
Dutch, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, etc. languages.  There are also some parameters available when output is PCL file format, please have a check.

-useoffice 0: Don't use MS Office to convert DOC,DOCX,RTF,TXT,PPT,PPTX,XLS,XLSX formats
-useoffice 1: Use MS Office to convert DOC,DOCX,RTF,TXT,PPT,PPTX,XLS,XLSX formats
-useprinter              : Convert DOC files to other formats via virtual printer
-showofficeui            : Show Office Windows during conversion
-resetofficeview         : Reset Office View type to wdPrintView
-checkpwd                : Check if MS Word document contains an open password
-noretry                 : Don't try to re-convert failed office documents
-rotate <int>            : Rotate pages, 90, 180, 270
  -margin <string>         : Set page margin to PDF file
    -margin 10         : Set margin to 10pt to left
    -margin 10x10      : Set margin to 10pt to left,top
    -margin 10x10x10   : Set margin to 10pt to left,top,right
    -margin 10x10x10x10: Set margin to 10pt to left,top,right,bottom

Here are some examples for your reference.
doc2any.exe -useprinter -xres 300 -yres 300  "C:\in.doc" "C:\out.pcl"
doc2any.exe -useoffice 1 -useprinter -showofficeui "C:\in.doc" "C:\out.pcl"
doc2any.exe -useprinter -useoffice 1 -showofficeui -delay 10000 -resetofficeview -debug "C:\in.doc" "C:\out.pcl"
This software allows you to convert doc file to PCL without Office Installed.

As there are too many to be listed here.  If you need to know more, please visit readme.txt. During the conversion, if you have any question, please contact us as soon as possible.

 

 

     

DOC to Any Converter

Office to Image Command Line Converter

VeryDOC DOC to Any Converter can be used as Office to Image Command Line Converter. It can help you convert all versions Office files, OpenOffice files to Image like Postscript, PS, EPS, SVG, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX. If you need to run the conversion through Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. there is also corresponding version available. In the following part, I will show you how to use this software to convert Office file to image.

Step 1. Download Office to Image Command Line Converter

  • As it is Window command line version software, when downloading finishes, there will be a zip file. Please extract it to some folder then we can find the executable file and help documents.
  • There are many versions stated on our website, please download the right version according to your needs. Say if you need to use it for developing, please download the developer version.

Step 2. Convert Office file to Image through command line.

  • When you run the conversion, please refer to the usage and examples.
  • Usage:  DOC2Any [options] <in-file> [<out-file>]
  • When converting Office file to image, please refer to the following command line templates.
  • doc2any.exe C:\in.doc C:\out.png
    doc2any.exe C:\in.ppt C:\out.tif
    doc2any.exe C:\in.xls C:\out.gif
    doc2any.exe C:\in.docx C:\out.bmp
    doc2any.exe C:\in.pptx C:\out.tga
    doc2any.exe C:\in.xlsx C:\out.pcx
    doc2any.exe C:\*.doc C:\*.eps
    There are more it can do for you, simply change the input and output file formats then the conversion still can run. There are still many parameters available when output is image file. Please check the following examples.

    doc2any.exe -multipagetif -bitcount 1 -xres 300 -yres 300 -killoffice 0 -useprinter "C:\in.doc" C:\out.png
    This software allows you to set image resolution in X and Y directions. Set color depth, and compress image when output is tiff file format. When you need to rotate image file, this software also can make for you.
    doc2any.exe -useprinter -compression 88880 "C:\in.doc" C:\out.tif
    doc2any.exe -useprinter -compression 88881 "C:\in.doc" C:\out.tif
    doc2any.exe -useprinter -compression 88883 "C:\in.doc" C:\out.tif

Some parameters for your reference.
-xres <int>              : Set X resolution to image file
-yres <int>              : Set Y resolution to image file
-bitcount <int>          : Set color depth for image conversion
-compression <int>       : Set compression for TIFF image
-compression 1     : NONE compression
-rotate <int>            : Rotate pages, 90, 180, 270
-margin <string>         : Set page margin to PDF file
    -margin 10         : Set margin to 10pt to left
    -margin 10x10      : Set margin to 10pt to left,top
    -margin 10x10x10   : Set margin to 10pt to left,top,right
    -margin 10x10x10x10: Set margin to 10pt to left,top,right,bottom

This software has two many functions to be listed here, if you need to know more, please visit its homepage. During the using, if you have any question, please contact us as soon as possible.

@VeryDOC

Insert Office to PDF and change basic information by command line

In this article, I will show you how to insert Office file to PDF and change basic information of output PDF by command line. I use software VeryDOC DOC to Any Converter, which also allows you to set password for PDF, add watermark to PDF and so on so forth. Please check more detail information on its website. In the following part, I will show you how to use this software.

Step 1. Download DOC to Any Converter

  • As this is command line version software, when downloading finishes, there will be a zip in downloading folder. Please unzip it then you can call the executable file in MS  Dos Windows.
  • This software is shareware but it allows you to use hundreds of times free. And it sells at USD$79 allowing you to use it the whole life without any fee.

Step 2. Insert Office file to PDF and change or add basic information to output PDF.

    • When you use this software, please check readme.txt first then you can master rules of this software better. Please use this software according to the usage and examples.
    • Usage:  DOC2Any [options] <in-file> [<out-file>]
    • When you insert Office file to PDF and change or add basic information to output PDF, please refer to the following command line templates.

doc2any.exe -append 1 -subject "subject" C:\in.doc C:\out.pdf
doc2any.exe -append 2 –title "VeryDOC" C:\in.ppt C:\out.pdf
doc2any.exe -append 1 –author "aDA"  C:\in.docx C:\out.pdf
doc2any.exe -append 2 –keywords "subject" C:\in.xls C:\out.pdf
This software provides two mode of inserting, you can insert Office file to the first page of PDF or the last page of the existed PDF file. When set basic information, you can change title, keyword, subject, keywords and others. Now let us check the related parameters:
-append <int>            : Append document to an existing PDF file. There are four values under this parameter.
-append 0: when you need to overwrite if PDF file exists, please add this parameter.
-append 1: Insert before first page if PDF file exists
-append 2: Append to last page if PDF file exists
-append 3: Rename filename if PDF file exists
-producer <string>       : Set 'producer' to PDF file
-creator <string>        : Set 'creator' to PDF file
-subject <string>        : Set 'subject' to PDF file
-title <string>          : Set 'title' to PDF file
-author <string>         : Set 'author' to PDF file
-keywords <string>       : Set 'keywords' to PDF file
-openpwd <string>        : Set 'open password' to PDF file

If you need to know more functions, please visit homepage of DOC to Any Converter. During the using, if you have any question, please contact us as soon as possible.