DOC to Any Converter

How to split long HTML and then convert HTML to PDF?

When converting HTML file to other file formats, you may meet some quite long ones which can not be converted fully no matter how hard you try. In this article, I will show you one method of converting long HTML to PDF in specified height. I use software VeryDOC DOC to Any Converter, which also can help convert HTML file to Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX, etc. formats.

Step 1. Download DOC to Any Converter 

  • This software is Window application which can not work under Mac and Linux. But if you need this software work under Mac and Linux, please contact us then we can make one for you.
  • When downloading finishes, please unzip it to some folder then find the executable file in MS Dos Windows.

Step 2. Split HTML by height and convert HTML to PDF 

  • When you run conversion, please refer to the usage and examples.
  • Usage:   DOC2Any [options] <in-file> [<out-file>]
  • When converting HTML to PDF and split HTML by height, please refer to the following command line templates and parameters.
  • doc2any.exe –height 200 C:\in.html C:\out.pdf
    By this command line, we can convert HTML to PDF and specify height of PDF as 200.
    doc2any.exe –emfheight 150 C:\in.html C:\out.svg
    By this we can split HTML file at height of 150 and then convert HTML to SVG.
    doc2any.exe –pageheight 300 C:\in.html C:\out.tiff
    doc2any.exe –pageh 400 C:\in.html C:\out.jpg
    doc2any.exe –ph 100 C:\in.html C:\out.pdf
    Meanwhile this software also allows you to convert HTML file to other image file formats according to the height split by specified height.
    Now let us check related parameters:
    -width <int>             : Set page width to PDF file
    -height <int>            : Set page height to PDF file
    -emfheight <int>         : Split a long HTML file by height
    -pageheight <int>        : Split a long HTML page by page height, same as -emfheight
    -pageh <int>             : same as -pageheight
    -ph <int>                : same as -pageheight

So by this software, you can split HTML at any place. This function is good when converting long HTML to PDF especially there are some pictures, tables or others in HTML file. If you do not specify height, software will cut HTML in random place, so we can make sure the pictures, tables in it intact.

Meanwhile this software also can help you convert HTML to PDF and specify margins around it. There are some parameters for your reference.
-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

More functions and parameters, please check them in readme.txt. During the using, if you have any question, please contact us as soon as possible.

DOC to Any Converter

Doc2Any JPG sizing not working

I want to use doc2any to make 2 versions of JPGs, one full res and one at say 640x480 at 50-60% quality.

It's not working. Please let me know what I'm doing wrong. Here's my
command line call:

C:/www/w1.XXXXXXXXX.com/docroot/../owr/tools/doc2any/doc2any.exe -bitcount 1 -xres 300 -yres 300 "C:\www\w1.XXXXXXXXX.com\docroot\files\convex_channel.pptx" "C:\www\w1.XXXXXXXXX.com\docroot\files\converted\\20D2B228-C01D-0D6E-75F2-A088C8A9141E_files\jpg\20D2B228-C01D-0D6E-75F2-A088C8A9141E_640.jpg"

Here's what I get....

C:\www\w1.XXXXXXXXX.com>C:/www/w1.XXXXXXXXX.com/docroot/../owr/tools/doc2any/doc2any.exe -bitcount 1 -xres 300 -yres 300 "C:\www\w1.XXXXXXXXX.com\docroot\files\convex_channel.pptx" "C:\www\w1.XXXXXXXXX.com\docroot\files\converted\\20D2B228-C01D-0D6E-75F2-A088C8A9141E_files\jpg\20D2B228-C01D-0D6E-75F2-A088C8A9141E_640.jpg"
Thank you for choosing 'VeryDOC DOC to Any Converter' product.
Loading "C:\www\w1.XXXXXXXXX.com\docroot\files\convex_channel.pptx"file...[20%]
Export file(s)...[50%]
Shutdown PowerPoint Application...[60%]
Conversion time = 2402ms

C:\www\w1.XXXXXXXXX.com\docroot\files\convex_channel.pptx ==>C:\www\w1.XXXXXXXXX.com\docroot\files\converted\\20D2B228-C01D-0D6E-75F2-A088C8A9141E_files\jpg\20D2B228-C01D-0D6E-75F2-A088C8A9141E_640.jpg, result=ERROR

TickCount = 2402ms(2.40s), Result = 0

Customer
-----------------------------------------------

You can run following command line to convert your DOCX file to JPG files and resize JPEG files to 200x150,

doc2any.exe -width 200 -height 150 -useprinter -useoffice 1 "%CD%\example.docx" "%CD%\example.jpg"

Doc2Any JPG sizing not working

Doc2Any JPG sizing not working

You can run following command line to convert your PPTX file to JPG files and resize JPEG files to 640x480,

doc2any.exe -width 640 -height 480 -useprinter -useoffice 1 "%CD%\example.docx" "%CD%\example.jpg"

You can run following command line to convert your PPTX file to JPG files at 300 DPI, this is the full size image,

doc2any.exe -useprinter -xres 300 -yres 300 -useoffice 1 "%CD%\example.pptx" "%CD%\full_size_example.jpg"

Doc2Any JPG sizing not working

Doc2Any JPG sizing not working

also, please don’t use “-bitcount 1” for JPEG image, because JPEG image is not support black and white image.

VeryPDF

DOC to Any Converter

How to convert word to flash in batch by command line?

    In this article, I will share a method of converting word to flash by command line in batch. The software I use is VeryDOC DOC to Any Converter, which also can be used to convert DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to flash. In the following part, I will show you how to convert word to flash.

Step 1. Install DOC to Any Converter Command Line

  • If you are not familiar with the command line software, there is also GUI version available on the website. Here I will use the command line version for example.
  • When downloading finishes, there will be a zip file in downloading folder. Please extract it to some folder then you can check elements in it. First please find executable file and readme.txt then you can call it from MS Dos Windows.

Step 2. Convert word to flash by command line.

  • When use this software, please refer to the usage and examples. Here is the usage for your reference:
  • DOC2Any [options] <in-file> [<out-file>]

  • When convert word file to flash, please refer to the following command line template.
    doc2any.exe C:\in.doc C:\out.swf
    doc2any.exe C:\*.doc C:\*.swf
    By this command line,we can convert word file to flash in batch using wild character.
  • Here are some more examples of convert others file formats to flash.
  • doc2any.exe C:\in.ppt C:\out.swf
    doc2any.exe C:\in.xls C:\out.swf
    doc2any.exe C:\in.docx C:\out.swf
    doc2any.exe C:\in.pptx C:\out.swf
    doc2any.exe C:\in.xlsx C:\out.swf
    Please note when converting Office file to flash by this software, you need to install Office application or else the conversion may fail. And this is not the professional tool of converting word file to flash, there is no other setting parameters for output flash files. However, by this software you can convert word file to PDF in various formats then convert PDF to flash with quite professional parameters setting.

On VeryDOC website, we have professional software which allows you to convert PDF to flash, which is VeryDOC PDF to Flash Converter. By this software, you can set Flash frame rate, compress and optimize SWF files automatically, adjust resolution to 1x, quality is worst and file is small and so on so forth. Please check more information on its website.

       When converting word to flash by DOC to Any Converter, there are some advantages:

  1. This software supports more files like Office, OpenOffice and others as input.
  2. This software also can help you convert files to PDF, image and others.
  3. When converting files to PDF and then PDF to flash, this software allows you to add watermark to PDF and then watermark on flash.

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

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.