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.

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

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.

PDF Compressor

Compress PDF and replace font in PDF by Windows system fonts

   It is known that some PDF can not be viewed normally for some reason they won't swap for other fonts. When you open the PDF you may get the message "Cannot find or create the font xxxxx. Some characters may not display or print correctly."  When you meet this kind of PDF file, you can try to replace font in it by the Window system fonts. In this article, I will show you one method of replacing fonts in PDF and compress it.

Step 1. Download VeryDOC PDF Compressor

  • This software is command line version, when downloading finishes, there will be an zip file. Please extract it to some folder then you can call the executable file in MS Dos Windows.
  • And if you need to know more about this software, please visit homepage of VeryDOC PDF Compressor.

Step 2. Compress PDF and replace fonts in it by Windows system fonts.

  • When you run the conversion, please refer to the usage and examples.
  • Usage:        pdfcompressor [options] <pdf-file> [<out-pdf>]
  • When compress PDF and replace fonts in PDF, please refer to the following command line templates.
    pdfcompressor.exe -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf
    By this command line, you can embed all the fonts  and subset all the fonts in PDF for compression.
    pdfcompressor.exe -winfont -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf
    By this command line, we can replace fonts in PDF by the Windows system fonts and subset fonts in PDF.
    pdfcompressor.exe -subsetfonts C:\in.pdf C:\out.pdf
    Now let us check the related parameters:
  • -winfont               : this parameter can help you use Windows fonts to replace Base14 fonts
    -embedallfonts         :this parameter can help you embed all fonts in PDF file.
    -subsetfonts           : when you need to subset fonts in PDF, please add this parameter.
    -compressfonts         : when you need to compress fonts in PDF, please add this parameter.

When you use those parameters and those functions, please check the PDF properties first. Please make sure input PDF is test based then those functions can be reached. If the PDF is image based, the compression will fail. As to how to check, here are some tips: open PDF file, please try to copy text in PDF file. If you can copy, it is test based. If you can not copy, it is image based.

If the PDF file is image based, please compress PDF by the method of compressing image like downsample color images, set Monochrome Image Resolution and others. Please check more parameters in the readme.txt file.

By this method, you can reach two goals: compress PDF and replace fonts in PDF. During the using, if you have any question, please contact us as soon as possible.

PDF Compressor

How to compress PDF for easy checking and emailing?

Question: If I compress a PDF file into a zip file and email it to someone, will the recipient be able to view the file?I know its a complex question, but one of my aunt's friends needs to know so she can send a resume under PDF format, but it keeps saying the file is too large.

Answer: If you compress it to zip, receipt can not open it once she receives it. The receipt also need to install zip software then she can unzip it and check the PDF content. As the content of PDF is resume, it is test based, so you can compress it through subset text in it. And compress photo in it a little bit more. Then the size of PDF can be reduced at least 50% percent. In the following part, I will show you how to make it in detail steps.

Step 1. Download VeryDOC PDF Compressor

  • This software is Windows command line version, when downloading finishes, please unzip it then you can call the executable file in MS Dos Windows.
  • If you need to know more about this software, please visit  homepage of VeryDOC PDF Compressor

Step 2. Compress test based PDF file by command line

  • Usage:   pdfcompressor [options] <pdf-file> [<out-pdf>]
  • Here are some examples and one list for your reference. Please according to your content choose the proper compression method.

list of compression

  • Here are some examples.

pdfcompressor.exe -ci jpg -cidown -cidownres 50 -cidowntype 1 C:\in.pdf C:\out.pdf
By this command line, we can compress colorful image part by jpx and down sample color images.
pdfcompressor.exe -gi jpg -gidown -gidownres 50 -gidowntype 1 C:\in.pdf C:\out.pdf
By this command line, we can set Grayscale Image Compression by values: jpg and downsample Grayscale images 50%.
pdfcompressor.exe -mi fax -midown -midownres 50 -midowntype 1 C:\in.pdf C:\out.pdf
By this command line, we can set Monochrome Image Compression and downsmaple at 50%.
Now check related parameters:
-ci <string>           : Set Color Image Compression, values: jpx, jpg, zip
  -cidown                : Downsample color images
  -cidownres <int>       : Set Color Image Resolution
  -cidowntype <int>      : Downsample type for color images:
  -midown                : Downsample Monochrome images
  -midownres <int>       : Set Monochrome Image Resolution
  -midowntype <int>      : Downsample type for Monochrome images:

When you need to compress the fonts part, please add those parameters:
-embedallfonts         : Embed all fonts
-subsetfonts           : Subset fonts
-compressfonts         : Compress fonts
For example: pdfcompressor.exe -embedallfonts -subsetfonts -compressfonts C:\in.pdf C:\out.pdf

By this method, we can compress PDF to very little size and you can send it to someone easily. Meanwhile once the receipt receives it, she can view at once. And the quality will not be effected. During the using, if you have any question, please contact us as soon as possible.