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.

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
@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.

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

How to convert Office to PDF and set opening options by command line?

When you need to convert Office file to PDF and set opening options in Adobe Reader through command line, this article will be helpful for you. Opening options here I refer to are setting viewer preferences like Hide Tool Bar, Hide Menu Bar, Hide Window UI, Fit Window, Center Window, Display Doc Title, Non-Full Screen Page Mode and others. I use software VeryDOC DOC to Any Converter which allows you to convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF and set opening options. In the following part, I will show you how to use this software.

Step 1. Download DOC to Any Converter

  • If you need to know more about this software, please visit it homepage and you will find more surprising good functions of this software.
  • Once downloading finishes, there will be an zip file. Please extract it some folder then you can call the executable file in MS Dos Windows.

Step 2. Convert Office to PDF and set opening options.

  • Usage:   DOC2Any [options] <in-file> [<out-file>]
  • When you convert Office file to PDF and set opening options, you may need to use the following parameters.
    -pagelayout 6: TwoPageRight
    -viewpagemode <int>      : Set page mode that is used when opening the document in Adobe Reader
    -viewpagemode 0: No page mode is applied, default option
    -viewpagemode 1: Show outline tree
    -viewpagemode 2: Show thumbnails
    -viewpagemode 3: Open the document in full-screen mode
    -viewpagemode 4: UseOC
    -viewpagemode 5: UseAttachments
    -vieweropt <int>         : Set viewer preferences to Adobe Reader
    -vieweropt  1: HideToolBar
    -vieweropt  2: HideMenuBar
    -vieweropt  4: HideWindowUI
    -vieweropt  8: FitWindow
    -vieweropt 16: CenterWindow
    -vieweropt 32: DisplayDocTitle
    -vieweropt 64: Non-FullScreenPageMode, use -viewerval to set more options
  • Now let us check some examples of converting Office to PDF and set opening options.
    doc2any.exe -viewpagemode 1 -viewpage 10 -vieweropt  1"C:\in.doc" C:\out.pdf
    By this command line, we can convert word file to PDF and show outline tree, hide tool bar and show the 10th page.
    doc2any.exe -viewpagemode 5 -viewpage 4 -vieweropt  4 "C:\in.ppt" C:\out.pdf
    By this command line,we can set view 4th page when open it and hide Window UI.
    doc2any.exe -viewpagemode 1 -viewpage 10 -vieweropt  2 -view "C:\in.xls" C:\out.pdf
    By this command line, we can hide menu bar and set the 10th page at the started page.
    doc2any.exe -viewerzoom 1600 -vieweropt  8 -view "C:\in.docx" C:\out.pdf
    By this command line, when open 8th page as started page and set zoom rate at 1600.
    doc2any.exe -viewerzoom 1200 -viewpage 10 -vieweropt  1 6 -view "C:\in.doc" C:\out.pdf

Please check more examples in readme.txt. 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

How to insert PPT to PDF first page and set password to protect output?

   When you need to insert PPT file to one existed PDF file and set password to protect it, please read the following article. This method also can be used to insert DOC, DOCX, DOCM, RTF, TXT, PPTX, XLS, XLSX and others to an existed PDF file. And when you need to encrypt PDF, this method allows you to encrypt PDF from two levels in two aspects. In the following part, I will show you how to insert PPT to PDF and set password.

Step 1. Download DOC to Any Converter Command Line

  • DOC to Any Converter is Window command line application, it can be used to convert office file format to PDF and then overwrite, insert, append or rename PDF file if destination PDF file exists.  If you need to know more about this software, please visit homepage of DOC to Any Converter.
  • When downloading finishes, there will be a zip file. Please extract it to some folder and then check elements in it.

Step 2. Insert PPT to PDF and set password

  • When you run the conversion, please refer to the usage and examples.
  • Usage:       DOC2Any [options] <in-file> [<out-file>]
  • When you need to insert PPT to an existed PDF and set password, please refer to the following command line template.
  • doc2any.exe -append 1 C:\in.ppt C:\out.pdf
    doc2any.exe -append 2 C:\in.ppt C:\out.pdf
    doc2any.exe -append 2 C:\*.ppt C:\out.pdf
    doc2any.exe -append 2 -width 612 -height 792 C:\*.ppt C:\out.pdf
    doc2any.exe -ownerpwd 123 -keylen 2 -encryption 3900 C:\in.doc C:\out.pdf
    for %F in (D:\test\*.ppt) do "doc2any.exe" "%F" "%~dpnF.pdf"
    for /r D:\test %F in (*.ppt) do "doc2any.exe" "%F" "%~dpnF.pdf"
    Now let us check related parameters:

    -append <int>            : Append document to an existing PDF file
    -append 0: Overwrite if PDF file exists
    -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

    -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
        -encryption    0: Encrypt the file only
        -encryption 3900: Deny anything
        -encryption    4: Deny printing
        -encryption    8: Deny modification of contents
        -encryption   16: Deny copying of contents
        -encryption   32: No commenting
        ===128 bit encryption only -> ignored if 40 bit encryption is used
        -encryption  256: Deny FillInFormFields
        -encryption  512: Deny ExtractObj
        -encryption 1024: Deny Assemble
        -encryption 2048: Disable high res. printing
        -encryption 4096: Do not encrypt metadata

By this method and under the help of this software, we can insert PPT to existed 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)
DOC to Any Converter

Convert text to PDF and control open mode by command line

In this article, I will show you one method of converting text to PDF in batch by command line and control viewing mode when you open output in Adobe PDF Reader. Meanwhile, this method can be used to convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF and control viewing mode.

  The great part of this method is software VeryDOC DOC to Any Converter. If you use server version or developer version of DOC to Any Converter,there is also integrated COM object (or DLL Library, or Command Line) availbel, enabling developers to access the converter via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. In the following part, I will show you how to use it.

Step 1. Download DOC to Any Converter Command Line

All the VeryDOC Licenses are perpetual, once you pay for it then you can use it forever if you do not change software environment or need to update it to the latest version.

  • Once downloading finishes, there will be a zip file. Please unzip it and then check the elements in it.

Step 2. Convert text to PDF and control viewing mode

  • It is necessary to read help document before running this software. And when you use it, please obey rules and examples.
  • Usage:    DOC2Any [options] <in-file> [<out-file>]
  • When you need to convert text to PDF, please refer to the following command line.
    doc2any.exe C:\in.txt C:\out.pdf
  • doc2any.exe C:\*.txt C:\*.pdf
    for %F in (D:\test\*.txt) do "doc2any.exe" "%F" "%~dpnF.pdf"

      • When you need to convert text to PDF and control view mode, please refer to the following command line.
        doc2any.exe -viewerzoom 1600 -viewpage 10 -viewpagemode 2 -view "C:\in.doc" C:\out.pdf
        Now let us check related parameters:
      • -viewpagemode <int>      : Set page mode that is used when opening the document in Adobe Reader
            -viewpagemode 0: No page mode is applied, default option
            -viewpagemode 1: Show outline tree
            -viewpagemode 2: Show thumbnails
            -viewpagemode 3: Open the document in full-screen mode
            -viewpagemode 4: UseOC
            -viewpagemode 5: UseAttachments
          -vieweropt <int>         : Set viewer preferences to Adobe Reader
            -vieweropt  1: HideToolBar
            -vieweropt  2: HideMenuBar
            -vieweropt  4: HideWindowUI
            -vieweropt  8: FitWindow
            -vieweropt 16: CenterWindow
            -vieweropt 32: DisplayDocTitle
            -vieweropt 64: Non-FullScreenPageMode, use -viewerval to set more options
          -viewerval <int>         : Additional values used by -vieweropt 64
            -vieweropt 64 -viewerval 1   : UseNone
            -vieweropt 64 -viewerval 2   : UseOutlines
            -vieweropt 64 -viewerval 4   : UseThumbs
            -vieweropt 64 -viewerval 1024: UseOC
          -viewerzoom <string>     : Set viewer zoom ratio to Adobe Reader
            -viewerzoom FitBH: Display pages to fit the width of its bounding box
            -viewerzoom FitH : Display pages to fit the width of page
            -viewerzoom Fit  : Display pages to fit window
            -viewerzoom FitV : Display pages to fit height of page
            -viewerzoom FitB : Display pages to fit its bounding box entirely
            -viewerzoom FitBV: Display pages to fit height of its bounding box
            -viewerzoom 25   : Display pages with magnification at 25%%
            -viewerzoom 50   : Display pages with magnification at 50%%
            -viewerzoom 1600 : Display pages with magnification at 1600%%
          -viewpage <string>       : set start page when opening it in Adobe Reader
          -view                    : View PDF file after creation

      Please check above parameters and usage carefully then add corresponding parameters according to your needs. By those parameters, you can convert text to PDF and control viewing mode. 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)