DOC to Any Converter

Excel or word files to PDF using VB

Question:I am looking for a tools were I can convert excel or word files to PDF I am using vb6 and wanted to know if this control was available. I am looking forward to your good news. Thx

Answer: According to your needs, maybe you can have a free trial of VeryDOC DOC to Any Converter. By this software you can convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX, OpenOffice ODT, HTML, MHTML files to PDF together with VB. In the following part, I will show some examples.

Step 1. Download DOC to Any Converter

  • When downloading finishes, there will be an zip file. Please unzip this file then check the elements in it.
  • Please note when you need to call this software together with VB, please download the SDK version or the server version, which is easily to be called from ASP/PHP/C#/.NET/... etc. server side applications.

Step 2. Some code examples when calling together with VB, C# and others.

Example #4 (VB.NET example),
System.Diagnostics.Process.Start("C:\doc2any.exe C:\test.doc C:\out.pdf")
Example #5 (C# example),
Please by following steps to call doc2any.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following C# code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EXESHELLLib;

namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
EXESHELLLib.shell EXEShell = new EXESHELLLib.shellClass();
EXEShell.RunCommandLine("UserName", "Password", @"C:\doc2any.exe ""C:\test.doc"" ""C:\out.pdf""");
EXEShell = null;
}
}
}
~~~~~~~~~~~~~~~~~
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please refer to the steps in #2 to solve the 1314 Error.
Example #6 (PHP example),
<?php
    $exeshell =new COM("exeshell.shell") or die("Can't start exeshell");
    $exeshell->RunCommandLine("UserName", "Password", ' "C:\doc2any.exe" "C:\test.doc" "C:\out.pdf" ');
    $exeshell = null;
?>

Please note this software supports all version of VB, C#  and other third party applications. A programmer can create an application using the components provided by the Visual Basic program together with Doc to Any Converter . Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations.  If you use the SDK version of the software, when developing finishes, you are allowed to Royalty Free Runtime Desktop Distribution, which means that you can run on any number of servers/computers and distribute the newly developed software casually.  

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

DOC to Any Converter

Any to watermarked PDF by Doc to Any Converter

Question:Hello, I've been looking at your suite of products as opposed to some other options. 'DOC to Any Converter' seems to be the product which might help me with my need. However, I also need to be able to apply a watermark to a PDF document, which means PDF(non watermarked) > PDF(watermarked).
The ideal hypothetical product for me is 'Any to watermarked PDF. Can you please suggest which product or product combination would achieve this? I see that there is 'Doc Converter COM', but I can't justify USD 2,000 for what I need to do - I would be better with alternative solutions.
For PDF(non watermarked) to PDF(watermarked) I thought about Step 1 - 'PDF to Word Converter', then Step 2 - 'DOC to Any Converter', but maybe you have a better idea.Look forward to hearing.

Answer:  Yes, your method is too complicated. From any to watermarked PDF, simply one software VeryDOC DOC to Any Converter can help you make that. In the following part,  I will show you how to use this software to convert any to watermarked PDF file.

Step 1. Download  DOC to Any Converter

  • This is command line version software. When downloading finishes, there will be an zip file. Please unzip it to some folder then you can check the elements in it.
  • When you use this software, please input the command line according to the usage and example.

Step 2. Convert Any to watermarked PDF

Usage: DOC2Any [options] <in-file> [<out-file>]

  • This software can convert *.DOC, *.DOCX, *.RTF, *.TXT, *.PPT, *.PPTX, *.XLS, *.XLSX  and others as input.
  • When output is PDF, you can add watermark according to your need.
  • When convert any doc file to PDF and add watermark, please refer to the following command line template.
  • doc2any.exe -wtext "VeryPDF" "C:\in.doc" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wc "0000FF" "C:\in.ppt" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wx 100 -wy 100 "C:\in.docx" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 1 "C:\in.pptx" C:\out.pdf
    doc2any.exe -wtext "VeryPDF" -wtype 2 "C:\in.xls" 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" C:\out.pdf
    Related Parameters:
    -wtext <string>      : watermark 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
    -wbox <string> : a rectangle to output formatted text, it is only useful for "-walign" option, eg:
        -wbox "0,0,595,842"
        -wbox "0,0,612,792"

By those above command line templates, you can convert any doc files to watermarked PDF file.  During the using, if you have any question, please contact us as soon as possible.

Image to XPS Converter

Convert Jpeg to XPS and add watermark by command line

    When you need to get the content in Jpeg file format to paper document, it will be a little complicated as now most of the printers does not support image as input printing formats. However, if you can convert Jpeg to XPS file then you can print it directly. VeryDOC Jpeg to XPS Converter can help you do the conversion and it also allows you to stamp watermark on the output XPS file. In the following part, I will show you how to use this software.

Step 1. Download Jpeg to XPS Converter

  • This software is Windows command line application, once downloading finishes, there will be an zip file. Please extract it to some folder then you can use it normally.
  • If you need to know more functions and usage, please check them on our website.

Step 2. Convert Jpeg to XPS and add watermark

  • When you run the conversion, please refer to the usage and examples.
    Usage: img2xps.exe [options] [Options] <Image Files>
  • When you need to convert Jpeg to XPS and add watermark, please refer to the following command line template.
    img2xps.exe -wtext "test for checking" -wb -wi -wu -ws C:\input.jpg
    When you input the command line, please call this application first in MS Dos Windows, using parameter -wtext to specify the text of watermark, then specify watermark color, size, position and others. At last input the full path of input Jpg file path.
  • When you need to convert single Jpeg to XPS, please refer to the following command line.
    img2xps.exe C:\files.jpg C:\out.xps
  • When you need to do batch conversion, you can use wild character. Please refer to the following command line.
  • img2xps.exe C:\*.jpg C:\out.xps
    img2xps.exe C:\test*.jpeg C:\*.xps
    By this function, you can also convert jpg files with some prefix to XPS file in batch, say C:\test*.jpeg.
    Related Parameters:
    -wtext <string> : watermark 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 height of watermark
      -ww <int>        : font width of watermark
      -wb                    : specify bold font
      -wi                    : specify an italic font
      -wu                    : specify an underlined font
      -ws                    : specify a strikeout font
      -wo <int>          : opacity of watermark, from 0 to 100
      -wa <int>           : angle of watermark
      -wc <string>       : color of watermark,
        FF0000: Red color
        00FF00: Green color
        0000FF: Blue color
        HexNum: Other colors
      -wx <int>              : X offset of watermark
      -wy <int>              : Y offset of watermark

     

Now let us check the conversion effect from the following snapshot.

input Jpeg and output XPS

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

Image to XPS Converter

Convert image to XPS and design watermark casually

  XPS stands for XML Paper Specification. It’s a document type developed by Microsoft, which serves as a PDF alternative. And this file format is good when you need to print XPS file directly. During the printing job, some times you may need to design watermark on it and then print XPS file with watermark. VeryDOC Image to XPS Converter can help you convert image to XPS and design watermark.

  When you design watermark, you can choose which font as watermark fonts, which color, which position and others. Meanwhile, you can control the watermark height and width, opacity of watermark from 0 to 100, rotating angles and bold or italic font.

Step 1. Download Image to XPS Converter

  • This software is command line version and it sells at USD$79 now. If you do not change software working casually, you can use this software forever.
  • When downloading finishes, please unzip this software then find the executable file in extracted folder.

Step 2. Convert Image to XPS and Control Watermark style

  • When you run the conversion, please refer to the usage and examples.
    Usage: img2xps.exe [options] [Options] <Image Files>
  • When you need to convert image to XPS and add watermark, please refer to the following command line template.
  • img2xps.exe -wtext "Watermark" C:\input.tif
    img2xps.exe -wtext "Watermark" -wtype 1 C:\input.tif
    img2xps.exe -wtext "Watermark" -wf "Arial" C:\input.jpg
    img2xps.exe -wtext "Watermark" -wh 200 C:\input.jpeg
    img2xps.exe -wtext "Watermark" -wb -wi -wu -ws C:\input.gif
    img2xps.exe -wtext "Watermark" -wo 80 C:\input.png
    img2xps.exe -wtext "Watermark" -wo 80 -wa 75 C:\input.bmp
    img2xps.exe -wtext "Watermark" -wc "FF0000" C:\input.tga
    img2xps.exe -wtext "Watermark" -wc "00FF00" C:\input.wmf
    img2xps.exe -wtext "Watermark" -wc "0000FF" C:\input.emf
    img2xps.exe -wtext "Watermark" -wx 100 -wy 100 C:\input.tif

Related Parameters:
-wtext <string>        : when you specify text of watermark on printed document, please add this parameter
-wtype <int>           : by this parameter, you can control type of watermark. You can under it as position type.
    0 : normal watermark
    1 : watermark on header
    2 : watermark on footer
  -wf <string>         : font name of watermark, say you can specify the font as times new Roman or others.
  -wh <int>              : font height of watermark
  -ww <int>             : font width of watermark
  -wb                   : specify bold font
  -wi                    : specify an italic font
  -wu                   : specify an underlined font
  -ws                   : specify a strikeout font
  -wo <int>       : when you need to control opacity of watermark, from 0 to 100, please add this parameter, say you can use wo 80 , the opacity of watermark is 80 percent.
  -wa <int>              : angle of watermark
  -wc <string>         : color of watermark,
    FF0000: Red color
    00FF00: Green color
    0000FF: Blue color
    HexNum: Other colors
  -wx <int>              : X offset of watermark
  -wy <int>              : Y offset of watermark

Now let us check the effect of conversion and adding watermark from the following snapshot.
input png and output XPS

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

Image to XPS Converter

Convert Image to XPS from ASP/PHP/C#/.NET/… etc.

   When you need to convert large volumes of image files in real-time on server or for developing, maybe you can have a free trial of software VeryDOC Image to XPS Converter, which can be used to be called via an easily integrated COM object (or DLL Library, or Command Line), enabling developers to access the converter via any programming or scripting languages, such as Visual Basic, C/C++, Delphi, ASP, PHP, C#, .NET, etc. Using the COM object (or DLL Library, or Command Line), file conversions can be done consecutively or simultaneously.

Step 1. Download Image to XPS Converter

  • When downloading finishes, there will be some zip file. Please extract it to some folder then you can check the elements in it.
  • This software only can work in Window system both 32-bit and 64-bit.

Step 2. Some examples of conversion from Image to XPS

For example, when you need to call this software from C#, please refer to the following snapshot.

Sample code #1 (C# example),
Make use of the PROCESS class available in SYSTEM.DIOGNOSTICS namaspace, use the following piece of code to execute the img2xps.exe file,
~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
{
static void Main(string[] args)
{
Process proc = new Process();
proc.StartInfo.FileName = @"C:\\img2xps.exe";
string strArguments = "";
strArguments += " D:\\temp\\sample.tif D:\\temp\\out.xps";
Console.WriteLine(strArguments);
proc.StartInfo.Arguments = @strArguments;
proc.Start();
proc.WaitForExit();
}
}
}

When you need to call this software from ASP, please refer to the following command line template.

Sample code #3 (ASP example),
Please by following steps to call img2xps.exe inside a special user account,
1. Please download and install EXEShell COM Library (freeware) from following URL first,
https://www.verydoc.com/exeshell.html
https://www.verydoc.com/download/exeshell.zip
2. Please use following ASP code to run the conversion inside a special user account,
~~~~~~~~~~~~~~~~~
<%
    Set comEXEShell = Server.CreateObject("exeshell.shell")
    RootPath = Server.MapPath(".") & "\"
    EXEFile = RootPath & "img2xps\img2xps.exe"
    InFile = RootPath & "test.tif"
    OutFile = RootPath & "out.xps"
    strCommandLine = EXEFile & " " & InFile & " " & OutFile
    response.write strCommandLine & "<br>"
    comEXEShell.RunCommandLine "UserName", "Password", strCommandLine
    Set comEXEShell = Nothing
%>
~~~~~~~~~~~~~~~~~
Remark:
You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please refer to the steps in #2 to solve the 1314 Error.

There are too many functions, I can list all of them here. If you need to check more, please visit it on our website. During the using, if you have any question, please contact us as soon as possible.