HTML Print

HTMLPrint command line exit codes

Hello,

I am using HTMLPrint for an invoice printing solution which is in development. My company will shortly be purchasing a server license from you..

I would like to know, does htmlprint.exe have exit codes which indicate error conditions? If so, it would be helpful to know what the exit codes are and what error conditions they represent..

I am calling htmprint.exe from a C# application...

var startInfo = new ProcessStartInfo
{
CreateNoWindow = true,
FileName = "htmlprint.exe",
Arguments = "{my html doc} -hidewindow"
};

var process = Process.Start(startInfo);

process.WaitForExit();

switch (process.ExitCode)
{
case -1: // html print error?
case 0: // html print success?
// etc...
}

I would be very grateful if you could clarify this point for me ?

With kind regards,
===============================================
Thakns for your message, please refer to return value of htmlprint.exe at below,

0: Printing successful
-10: Can't load necessary DLL files properly
-101: Can't start spooler service
-10: Can't install virtual printer correctly
-11: Something is wrong in command line options
-12: Can't load device settings from target printer
-19: Wrong value in "Copies"
5: Trial version is expired
-21: Can't change printer settings

VeryDOC
===============================================
Thank you, the list was very helpful to me!

I have one further question – is it possible to give the input to htmlprint.exe via stdin instead of an HTML file or URL?

In my application I have HTML stored in memory as a string. Right now I have to create a temporary file on disk to print...

string myHtml = “ etc etc... ”;
var tempFile = File.WriteAllText(“temp.htm”, myHtml);
Process.Start(“htmlPrint.exe temp.htm”).WaitForExit();
File.Delete(tempFile);

I would prefer to pass the string to stdin like this:

var startInfo = new ProcessStartInfo(“htmlprint.exe”)
startInfo.RedirectStandardInput = true;
var process = Process.Start(startInfo);
process.StandardInput.WriteLine(myHtml);
process.WaitForExit();

And then no html file is necessary - Is it possible to do?
===============================================
Thanks for your message, yes, read HTML content from “stdin” is a great solution, but the current version of HTMLPrint command line doesn’t support “stdin” yet, we will try to implement this function in the future, we will let you know after this function is available.

VeryDOC
===============================================
Hello VeryDOC,

I am using HTML Print command line utility happily at my company. I would like to share with you some helpful code I have written, it is used to execute htmlprint.exe.

This code is written in C# for using htmlprint in .NET applications – I hereby give you permission to share this code with your customers and/or offer it for download on your website. I hope it will benefit other users of htmlprint.exe ?

The license is open-source for anybody to use or modify.

With kind regards,
==================================
Thanks for your great information, I have attached the source code of HTML Print Command Line calling example at below, thank you again.

VeryDOC
==================================
#region License
// Microsoft Public License (MS-PL)
// This license governs use of the accompanying software. If you use the software, you
// accept this license. If you do not accept the license, do not use the software.

// 1. Definitions
// The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
// same meaning here as under U.S. copyright law.
// A "contribution" is the original software, or any additions or changes to the software.
// A "contributor" is any person that distributes its contribution under this license.
// "Licensed patents" are a contributor's patent claims that read directly on its contribution.

// 2. Grant of Rights
// (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
// (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

// 3. Conditions and Limitations
// (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
// (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
// (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
// (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
// (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
#endregion

namespace VeryDoc.HtmlPrint
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;

    /// <summary>
    /// Defines a helper class to build VeryDOC htmlprint command lines.
    /// </summary>
    /// <example>
    ///   <code lang="C#">
    ///   <![CDATA[
    ///     var startInfo = HtmlPrintCommandLineBuilder.BeginBuild()
    ///                    .WithBottomMargin(25)
    ///                    .WithCopies(1)
    ///                    .WithHtmlFilePath("myHtmlFile.htm")
    ///                    .WithLeftMargin(25)
    ///                    .WithPrinter("myPrinter")
    ///                    .WithRightMargin(25)
    ///                    .WithTopMargin(25)
    ///                    .WithRegistrationKey("XXXXXXXXXXXXXXXXXXX")
    ///                    .ToProcessStartInfo("htmlprint.exe");
    ///
    ///     var htmlPrintProcess = System.Diagnostics.Process.Start(startInfo);
    ///   ]]>
    ///   </code>
    /// </example>
    public class HtmlPrintCommandLineBuilder
    {
        /// <summary>
        /// Prevents a default instance of the <see cref="HtmlPrintCommandLineBuilder"/> class from
        /// being created.
        /// </summary>
        private HtmlPrintCommandLineBuilder()
        {
            this.CommandLineSwitches = new List<String>();
        }

        /// <summary>
        /// Gets or sets the list of command line switches which have been configured for this
        /// build context.
        /// </summary>
        private List<String> CommandLineSwitches { get; set; }

        /// <summary>
        /// Gets or sets the path to the html file which should be printed.
        /// </summary>
        private String HtmlFilePath { get; set; }

        /// <summary>
        /// Begins the build context.
        /// </summary>
        /// <returns>A new <see cref="HtmlPrintCommandLineBuilder"/> instance.</returns>
        static public HtmlPrintCommandLineBuilder BeginBuild()
        {
            return new HtmlPrintCommandLineBuilder();
        }

        /// <summary>
        /// Defines a named printer for the build context.
        /// </summary>
        /// <param name="printerName">The name of the printer to use.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="printerName"/> parameter is null.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithPrinter(String printerName)
        {
            if (String.IsNullOrEmpty(printerName))
                throw new ArgumentNullException("printerName");

            this.CommandLineSwitches.Add(String.Format("-printer \"{0}\"", printerName));

            return this;
        }

        /// <summary>
        /// Defines the number of copies to print.
        /// </summary>
        /// <param name="copies">The number of copies to print.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// Thrown if the value passed to the <paramref name="copies"/> parameter is less than one.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithCopies(Int32 copies)
        {
            if (copies < 1)
                throw new ArgumentOutOfRangeException("copies");

            this.CommandLineSwitches.Add(String.Format("-copies {0}", copies));

            return this;
        }

        /// <summary>
        /// Defines the left margin when printing, measured in points.
        /// </summary>
        /// <param name="points">The margin size in points.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// Thrown if the value passed to the <paramref name="points"/> parameter is less than zero.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithLeftMargin(Int32 points)
        {
            if (points < 0)
                throw new ArgumentOutOfRangeException("points");

            this.CommandLineSwitches.Add(String.Format("-marginleft {0}", points));

            return this;
        }

        /// <summary>
        /// Defines the top margin when printing, measured in points.
        /// </summary>
        /// <param name="points">The margin size in points.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// Thrown if the value passed to the <paramref name="points"/> parameter is less than zero.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithTopMargin(Int32 points)
        {
            if (points < 0)
                throw new ArgumentOutOfRangeException("points");

            this.CommandLineSwitches.Add(String.Format("-margintop {0}", points));

            return this;
        }

        /// <summary>
        /// Defines the right margin when printing, measured in points.
        /// </summary>
        /// <param name="points">The margin size in points.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// Thrown if the value passed to the <paramref name="points"/> parameter is less than zero.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithRightMargin(Int32 points)
        {
            if (points < 0)
                throw new ArgumentOutOfRangeException("points");

            this.CommandLineSwitches.Add(String.Format("-marginright {0}", points));

            return this;
        }

        /// <summary>
        /// Defines the bottom margin when printing, measured in points.
        /// </summary>
        /// <param name="points">The margin size in points.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentOutOfRangeException">
        /// Thrown if the value passed to the <paramref name="points"/> parameter is less than zero.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithBottomMargin(Int32 points)
        {
            if (points < 0)
                throw new ArgumentOutOfRangeException("points");

            this.CommandLineSwitches.Add(String.Format("-marginbottom {0}", points));

            return this;
        }

        /// <summary>
        /// Defines the header text to print.
        /// </summary>
        /// <param name="headerText">The header text.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="headerText"/> parameter is null or
        /// empty.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithHeader(String headerText)
        {
            if (String.IsNullOrEmpty(headerText))
                throw new ArgumentNullException("headerText");

            this.CommandLineSwitches.Add(String.Format("-header \"{0}\"", headerText));

            return this;
        }

        /// <summary>
        /// Defines the footer text to print.
        /// </summary>
        /// <param name="footerText">The footer text.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="footerText"/> parameter is null or
        /// empty.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithFooter(String footerText)
        {
            if (String.IsNullOrEmpty(footerText))
                throw new ArgumentNullException("footerText");

            this.CommandLineSwitches.Add(String.Format("-footer \"{0}\"", footerText));

            return this;
        }

        /// <summary>
        /// Instruct htmlprint.exe to hide the preview dialog.
        /// </summary>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        public HtmlPrintCommandLineBuilder HideWindow()
        {
            this.CommandLineSwitches.Add("-hidewindow");

            return this;
        }

        /// <summary>
        /// Defines the registration key to pass to htmlprint.exe
        /// </summary>
        /// <param name="registrationKey">The registration key.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="registrationKey"/> parameter is null
        /// or empty.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithRegistrationKey(String registrationKey)
        {
            if (String.IsNullOrEmpty(registrationKey))
                throw new ArgumentNullException("registrationKey");

            this.CommandLineSwitches.Add(String.Format("-$ {0}", registrationKey));

            return this;
        }

        /// <summary>
        /// Sets the file path of the Html file which should be printed.
        /// </summary>
        /// <param name="htmlFilePath">The path of the Html file.</param>
        /// <returns>The command line builder for continuation of the fluent build process.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="htmlFilePath"/> parameter is null or
        /// empty.
        /// </exception>
        public HtmlPrintCommandLineBuilder WithHtmlFilePath(String htmlFilePath)
        {
            if (String.IsNullOrEmpty(htmlFilePath))
                throw new ArgumentNullException("htmlFilePath");

            this.HtmlFilePath = htmlFilePath;

            return this;
        }

        /// <summary>
        /// Returns a <see cref="System.String"/> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> that represents this instance.
        /// </returns>
        public override String ToString()
        {
            return String.Join(" ", this.CommandLineSwitches.ToArray()) + " \"" + this.HtmlFilePath + "\"";
        }

        /// <summary>
        /// Constructs a new <see cref="T:System.Diagnostics.ProcessStartInfo"/> object to invoke
        /// htmlprint.exe with the configured command line arguments.
        /// </summary>
        /// <returns>A new <see cref="T:System.Diagnostics.ProcessStartInfo"/> object.</returns>
        public ProcessStartInfo ToProcessStartInfo()
        {
            return this.ToProcessStartInfo("htmlprint.exe");
        }

        /// <summary>
        /// Constructs a new <see cref="T:System.Diagnostics.ProcessStartInfo"/> object to invoke
        /// htmlprint.exe with the configured command line arguments.
        /// </summary>
        /// <param name="exeFilePath">The file path to htmlprint.exe</param>
        /// <returns>A new <see cref="T:System.Diagnostics.ProcessStartInfo"/> object.</returns>
        /// <exception cref="T:System.ArgumentNullException">
        /// Thrown if the value passed to the <paramref name="exeFilePath"/> parameter is null or
        /// empty.
        /// </exception>
        public ProcessStartInfo ToProcessStartInfo(String exeFilePath)
        {
            if (String.IsNullOrEmpty(exeFilePath))
                throw new ArgumentNullException("exeFilePath");

            return new ProcessStartInfo
            {
                FileName  = exeFilePath,
                Arguments = this.ToString()
            };
        }
    }
}
=============================================
#region License
// Microsoft Public License (MS-PL)
// This license governs use of the accompanying software. If you use the software, you
// accept this license. If you do not accept the license, do not use the software.

// 1. Definitions
// The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
// same meaning here as under U.S. copyright law.
// A "contribution" is the original software, or any additions or changes to the software.
// A "contributor" is any person that distributes its contribution under this license.
// "Licensed patents" are a contributor's patent claims that read directly on its contribution.

// 2. Grant of Rights
// (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
// (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

// 3. Conditions and Limitations
// (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
// (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
// (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
// (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
// (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
#endregion

namespace VeryDoc.HtmlPrint
{
    using System;

    /// <summary>
    /// Defines an exception raised from the htmlprint.exe external tool.
    /// </summary>
    public class HtmlPrintException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="HtmlPrintException"/> class.
        /// </summary>
        public HtmlPrintException()
            : base() { }

        /// <summary>
        /// Initializes a new instance of the <see cref="HtmlPrintException"/> class.
        /// </summary>
        /// <param name="message">The error message.</param>
        public HtmlPrintException(String message)
            : base(message) { }

        /// <summary>
        /// Initializes a new instance of the <see cref="HtmlPrintException"/> class.
        /// </summary>
        /// <param name="message">The error message.</param>
        /// <param name="innerException">The inner exception.</param>
        public HtmlPrintException(String message, Exception innerException)
            : base(message, innerException) { }

        /// <summary>
        /// Creates a new <see cref="HtmlPrintException"/> object related to the specified exit
        /// code.
        /// </summary>
        /// <param name="exitCode">The htmlprint.exe process exit code.</param>
        /// <returns>A new <see cref="HtmlPrintException"/> object related to the specified exit
        /// code, or null if the exit code is zero or indicates a non-error condition.</returns>
        static public HtmlPrintException FromExitCode(Int32 exitCode)
        {
            switch (exitCode)
            {
                case -101:
                    {
                        return new HtmlPrintException("htmlprint.exe unable to start spooler service");
                    }
                case -100:
                    {
                        return new HtmlPrintException("htmlprint.exe unable to load dependency dll");
                    }
                case -21:
                    {
                        return new HtmlPrintException("htmlprint.exe unable to change printer settings");
                    }
                case -19:
                    {
                        return new HtmlPrintException("htmlprint.exe invalid copies parameter");
                    }
                case -18:
                    {
                        return new HtmlPrintException("htmlprint.exe unable to find specified printer");
                    }
                case -12:
                    {
                        return new HtmlPrintException("htmlprint.exe cannot load device settings from target printer");
                    }
                case -11:
                    {
                        return new HtmlPrintException("htmlprint.exe malformed command line");
                    }
                case -10:
                    {
                        throw new HtmlPrintException("htmlprint.exe unable to install virtual printer");
                    }
                case 0:
                    {
                        return null;
                    }
                case 5:
                    {
                        return new HtmlPrintException("htmlprint.exe trial expired");
                    }
                default:
                    {
                        if (exitCode < 0)
                            throw new HtmlPrintException("htmlprint.exe unknown error");

                        return null;
                    }
            }
        }
    }
}

DOC to Any Converter

A way to convert rtf to svg

Yes, there is a way to convert rtf to svg----to use DOC to Any Converter Command Line. DOC to Any Converter Command Line could be used to batch convert DOC, DOCX, DOCM, RTF, TXT, PPT, PPTX, XLS, XLSX files to PDF, Postscript, PS, EPS, SVG, SWF, XPS, PCL, HPGL, HTML, MHTML, RTF, Text, XML, JPG, TIFF, EMF, WMF, BMP, GIF, PNG, TGA, PCX formats etc, whose program is handy and powerful. DOC to Any Converter Command Line is available in MS-DOS system. With the help of DOC to Any Converter Command Line, the file conversions could be done consecutively or simultaneously.

Below is the way to convert rtf to svg with DOC to Any Converter Command line.

To convert rtf to svg with DOC to Any Converter Command Line, you need to open MS-DOS system first: click “windows+R” hotkey, then input “cmd” in the dialog box of “Run”, then click “ok” button, the dialog box of MS-DOS system could be opened:

A way to convert rtf to svg 

To use DOC to Any Converter Command Line in MS-DOS system, you need to input the path of doc2any.exe to the dialog box, then click “space” button:

 A way to convert rtf to svg

Prepare the source file for the conversion of rtf to svg, input the path of source file and click “space” button:

A way to convert rtf to svg 

Create the path of targeting file, to convert rtf to svg with DOC to Any Converter Command Line, please click “enter” button.

A way to convert rtf to svg

A way to convert rtf to svg 

The paragraphs above are to convert rtf to svg with DOC to Any Converter Command Line one by one. If you would like to convert rtf to svg in batches, you could refer to this example below:

A way to convert rtf to svg

A way to convert rtf to svg

Here ‘*.rtf’ stands for all of the source files in the source folder, likely, ‘*.svg’ represent all of the targeting files in the destination folder.

To download DOC to Any Converter Command, please click this link: https://www.verydoc.com/doc2any_cmd.zip. To know more about DOC to Any Converter Command Line, you could click this link: https://www.verydoc.com/doc-to-any-options.html.

DOC to Any Converter

Is there a way to convert xlsx to svg in batches?

Yes, of course, there is a way to convert xlsx to svg in batches, which is to use DOC to Any Converter Command Line. DOC to Any Converter Command Line could convert xlsx to svg in batches in MS-DOS system, which is a converting expert on converting doc, ppt and xls to pdf, ps,svg and jpg etc.. You could log on its main page to know more: https://www.verydoc.com/doc-to-any-options.html. Here is the way to convert xlsx to svg in batches below:

1. Open MS-DOS system in your computer: click “start” button>select “Run” on start menu>input “cmd.exe”>click “ok” button of dialog box, then MS-DOS system could be opened as a dialog box. Below is the current directory:

C:\Documents and Settings\admin>

2. Run DOC to Any Converter Command Line: input the path of doc2any.exe or drag doc2any.exe into the dialog box, then click “space” button.

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe

3. Input the source files, then click “space” button:

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe D:\source\*.xlsx

Here “*.xlsx” is to use a wildcard character to represent all xlsx files in the folder of “source”, thus, when you want to convert xlsx to svg in batches, you could use this method to convert xlsx to svg in batches quickly. Also it is suitable for adding the targeting path in this conversion.

4. Input the objective path like step 3, and click “enter” button to convert xlsx to svg in batches with DOC to Any Converter Command Line.

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe D:\source\*.xlsx E:\output\*.svg<enter>

To convert xlsx to svg one by one, you just need to input the path of xlsx file and targeting path one by one----change ‘*.svg’ to the real file name with file extension, for instance, ‘abc.xlsx’, then follow the steps in this article.

To use the parameters to set up the properties of svg files, you could refer to the following example below:

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe <options>D:\source\*.xlsx E:\output\*.svg<enter>

<options> in the command above, which represent the parameters in the real conversion, for instance, could be replaced by “-wtext “xxxyyyzzz”, or “-margin 100”, and “-wtext “xxxyyyzzz” means it could be to add watermark of “xxxyyyzzz” to targeting files, and “-margin 100” means to set up the left margin of targeting files to 100. Also there are many parameters you could input to set up the properties of targeting files with DOC to Any Converter Command Lines, you could visit the main page of DOC to Any Converter Command Line to know more from the link I give you above. To download DOC to Any Converter Command, please click this link: https://www.verydoc.com/doc2any_cmd.zip.

DOC to Any Converter

A way to convert xls to svg

This article is to show you how to convert xls to svg with command line. What is the command line? The command line is a kind of computer language that used in a command prompt, which is a non-graphical interface that allows you to interact with your operating system. At the command prompt, you could enter command lines by typing their names followed by options and arguments.

To convert xls to svg with command line, you could choose DOC to Any Converter Command Line, which could play an important role in our mission. DOC to Any Converter Command Line could convert many formats from office documents, such as pdf, ps and jpg etc.. You could visit its main page through this link: https://www.verydoc.com/doc-to-any-options.html. Below is the solution to convert xls to svg with DOC to Any Converter Command Line:

1. To open MS-DOS system in your computer, you could follow the instructions appropriate to your operating system:

click “start” button, then select “Run” on start menu, and input “cmd.exe” in the edit-box of “Run”, then click “ok” button to open MS-DOS system, which could be shown as a dialog box on your screen, and the current directory of dialog box is as below:

C:\Documents and Settings\admin>

2. Input the path of doc2any.exe, or drag doc2any.exe into the dialog box to start DOC to Any Converter Command Line in MS-DOS system:

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe<space>

3. Prepare the source files and create the objective paths for the targeting files for the conversion of xls to svg, to input all files one time, you could refer to this example below:

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe<space>D:\ab|*.xls<space>F:\bc\*.svg

‘*.xls’ represent all xls files in a folder for ‘*’ is a wildcard character. For instance, in the example above, “D:\ab\*.xls” means all the xls file paths. It is convenient to convert xls to svg in batches with DOC to Any Converter Command Line.

4. Click “enter” to convert xls to svg in batches:

C:\Documents and Settings\admin>D:\doc2any_cmd\doc2any.exe<space>D:\ab|*.xls<space>F:\bc\*.svg<enter>

Along with the popup of processing commands, it is over to convert xls to svg with DOC to Any Converter Command Line.

You could input the parameters between the path of doc2any.exe and the source paths to set up the properties of targeting files, you could refer to below:

C:\Documents and Settings\admin>E:\doc2any_cmd\doc2any.exe<space><options>D:\ab|*.xls<space>F:\bc\*.svg<enter>

<options> represent any parameters you could input. For instance, “–width 300 –height 200” could be <options>, which can let DOC to Any Converter Command Line to set up the width and height of targeting files as 300 and 200. Also you could input other parameters to set up the targeting files one time with this format.

More parameters and more about DOC to Any Converter Command Line, please click this link: https://www.verydoc.com/doc-to-any-options.html. Click this link to get its trial version to experience DOC to Any Converter Command Line: https://www.verydoc.com/doc2any_cmd.zip.

DOC to Any Converter

A way to convert pptx to svg in batches

Scalable Vector Graphics (SVG) is a family of specifications of an XML-based file format for describing two-dimensional vector graphics, both static and dynamic (i.e. interactive or animated). The SVG specification is an open standard that has been under development by the World Wide Web Consortium (W3C) since 1999.

In this article, I will show you a way to convert pptx to svg in batches with DOC to Any Converter Command Line. What is DOC to Any Converter Command Line? DOC to Any Converter Command Line is a professional converting tool with strong function working in MS-DOS system. DOC to Any Converter Command Line could convert so many kinds of formats from word, excel and ppt to pdf, ps and eps etc.. Here is the way to convert pptx to svg in batches below:

1. Run cmd.exe in your computer, you could click “start” button at the bottom of your pc screen, then select “Run” on start menu, and input “cmd.exe” in the edit-box of “Run”, then click “ok” button to open MS-DOS system, which could be shown as a dialog box on your screen, and the current directory of dialog box is as below:

C:\Documents and Settings\admin>

2. To start DOC to Any Converter Command Line in MS-DOS system, you could input the path of doc2any.exe, or drag doc2any.exe into the dialog box, which will shown as a route, too:

C:\Documents and Settings\admin>E:\doc2any_cmd\doc2any.exe<space>

3. Prepare the source files for the conversion of pptx to svg in batches, to input the paths of all source files, you could refer to this example below:

C:\Documents and Settings\admin>E:\doc2any_cmd\doc2any.exe<space>D:\source|*.pptx<space>

‘*’ is a wildcard character in computer science, which could represent all source files in a folder, for instance, in the example above, “D:\source\*.pptx” means all the pptx file paths of ‘source’ folder. You could refer to this format to input your own source files one time with wildcard character.

4. Create the objective paths for the targeting file, and convert pptx to svg, you could use the wildcard character to input the targeting paths, then click “enter” to convert pptx to svg in batches:

C:\Documents and Settings\admin>E:\doc2any_cmd\doc2any.exe<space>D:\source|*.pptx<space>F:\output\*.svg<enter>

When you click “enter” button to convert pptx to svg in batches, along with the popup of processing commands, it also mean this conversion is finished.

If you want to set up the properties of targeting files, you could input the parameters between the path of doc2any.exe and the source paths, below could show the location of parameters during the conversion, you could refer to:

C:\Documents and Settings\admin>E:\doc2any_cmd\doc2any.exe<space><options>D:\source|*.pptx<space>F:\output\*.svg<enter>

<options> stands for any parameters you could input during the conversion with DOC to Any Converter Command Line. For instance, <options> could be “-rotate 90” or “-rotate 90 –width 300 –height 100” etc.. “-rotate 90” could be to rotate angle of 90 on content of targeting files; “-width 300 –height 100” could be to set up the width and height of targeting files as 300 and 100.

To know more about DOC to Any Converter Command Line and buy its authorized liscense, you could click this link: https://www.verydoc.com/doc-to-any-options.html. To experience DOC to Any Converter Command Line, you could click this link to get its trial version: https://www.verydoc.com/doc2any_cmd.zip.