How to Batch Convert or Print XPS files to PDF files? Best software to convert from XPS to PDF.

This tutorial shows how to use "VeryDOC XPS to PDF Converter Command Line" to convert an XPS file to a PDF document. "VeryDOC XPS to PDF Converter Command Line" is a best XPS to PDF Converter that allows creating PDF files from XPS files on the fly.

image

VeryDOC XPS to PDF Converter Command Line can be downloaded from this web page,

https://www.verydoc.com/xps-to-pdf.html
http://www.verydoc.com/xps2pdf.zip

VeryDOC XPS to PDF Converter Command Line is a standalone application, it doesn't require Adobe Acrobat or Adobe Reader installed in the system. It's an native XPS processing, fast and precise.

XPS (XML Paper Specification) is a fixed file format developed by Microsoft similar to PDF but based on XML instead of the PostScript language. By installing VeryDOC XPS to PDF Converter Command Line you can easily convert XPS files to PDF documents.

After you download and unzip xps2pdf.zip to a folder, you can run xps2pdf.exe and get more command line options,

C:\>E:\xps2pdf\xps2pdf.exe
XPS to PDF Converter Command Line v2.0
XPS to PDF Converter does convert XPS files to PDF, EPS, PS, BMP, TIFF, JPEG, PNG, PCX, etc. formats.
http://www.verypdf.com
http://www.verydoc.com
Email: support@verydoc.com
Release Date: Feb 16 2019
Usage: xps2pdf [options] <xps-file> [<out-file>]
  -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
  -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 AES encryption (Acrobat 7 or higher)
  -permission <int>     : Restrictions
        -permission 0  : Deny anything
        -permission 1  : Allowed print the document
        -permission 2  : Allowed modify the content of the document
        -permission 4  : Allowed copy text and graphics from the document
        -permission 8  : Allowed add or modify annotations
        -permission 16 : Allowed fill in interactive form fields
        -permission 32 : Allowed extract text and graphics from the document
        -permission 64 : Allowed assemble the document
        -permission 128: Allowed print the document with high resolution
  -linearize            : Optimize PDF file for fast web view
  -width <int>          : Set page width to PDF file
  -height <int>         : Set page height to PDF file
  -multipagetif         : Create multipage TIFF format
  -xres <int>           : Set X resolution to image file
  -yres <int>           : Set Y resolution to image file
  -bitcount <int>       : Set color depth for image conversion
  -useprinter           : Convert XPS to PDF file using Viirtual Printer
  -skip                 : don't overwrite an output file if it already exists
  -$ <string>           : input registration key
Examples:
   xps2pdf.exe C:\in.xps C:\out.pdf
   xps2pdf.exe C:\in\*.xps C:\out\*.pdf
   xps2pdf.exe -producer "Test Producer" -creator "Test Creator" -subject "Test Subject" C:\in.xps C:\out.pdf
   xps2pdf.exe -linearize C:\in.xps C:\out.pdf
   xps2pdf.exe -ownerpwd 123 -keylen 2 -permission 128 C:\in.xps C:\out.pdf
   for /r D:\test %F in (*.xps) do "xps2pdf.exe" "%F" "%~dpnF.pdf"
   for %F IN (D:\test\*.xps) DO "xps2pdf.exe" "%F" "%~dpnF.pdf"
   xps2pdf.exe -xres 600 -yres 600 C:\in.xps C:\out.jpg
   xps2pdf.exe -xres 600 -yres 600 C:\in.xps C:\out-%04d.jpg
   xps2pdf.exe -width 1024 -height 768 C:\in.xps C:\out-%04d.jpg
   xps2pdf.exe -xres 600 -yres 600 -bitcount 1 C:\in.xps C:\out-%04d.tif
   xps2pdf.exe -xres 600 -yres 600 -bitcount 1 C:\in.xps C:\out.tif
   xps2pdf.exe C:\in.xps C:\out.ps
   xps2pdf.exe C:\in.xps C:\out.eps
   xps2pdf.exe C:\in.xps C:\out.bmp
   xps2pdf.exe C:\in.xps C:\out.tif
   xps2pdf.exe C:\in.xps C:\out.jpg
   xps2pdf.exe C:\in.xps C:\out.png
   xps2pdf.exe C:\in.xps C:\out.pcx

In general, you can run following command lines to convert a XPS file to PDF file,

xps2pdf.exe -producer "Test Producer" -creator "Test Creator" -subject "Test Subject" -title "Test Title" -author "Test Author" -keywords "Test Keywords" -ownerpwd 123 -keylen 2 -permission 132 test.xps _test.pdf
xps2pdf.exe -xres 600 -yres 600 -bitcount 1 test.xps _test-600dpi-1.tif
xps2pdf.exe -xres 600 -yres 600 -bitcount 24 test.xps _test-600dpi-24.tif
xps2pdf.exe -xres 600 -yres 600 test.xps _test-600dpi.jpg
xps2pdf.exe -xres 600 -yres 600 -bitcount 24 test.xps _test-600dpi-24.png
xps2pdf.exe -xres 600 -yres 600 -bitcount 1 test.xps _test-600dpi-1.png
xps2pdf.exe test.xps _test.ps

image

If you wish use Virtual Printer to convert a XPS file to PDF file, you may use "-useprinter" option, for example,

xps2pdf.exe -useprinter test.xps out.pdf

-useprinter option will print XPS file to a Postscript Printer first, and then convert from Postscript files to PDF files again, this option will maintain original contents and layout between XPS and PDF files completely.

If you with batch convert all of XPS files to PDF files in a folder with one command line, you can use wildcard character for the XPS files, for example,

xps2pdf.exe *.xps
xps2pdf.exe -useprinter *.xps

VeryDOC XPS to PDF Converter Command Line is a great software to convert from XPS files to PDF files without any third-party software installed, you can just download and try it for free.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in XPS to PDF And Image Converter | Tagged | Leave a comment

How to Convert XPS to PDF in Different Ways? How to use Virtual Printer to convert from XPS file to PDF file?

Both XPS and PDF are used to produce and share finalized documents: resumes, newsletters, invoices, legal documents, financial reports, tax returns and other types of documents. XPS format was meant to replace PDF as a universal standard for documents, but as for now PDF seems to have won this digital war.

Though both formats have pretty much the same functionality, XPS (XML Paper Specification XPS, Open XML Paper Specification, OXPS), compared to PDF (Portable Document Format), seems to be almost dead in the water. If your colleague or friend receives an XPS file from you, they might find it difficult to open or even consider it as malware.

It is possible to convert XPS to PDF in a variety of ways: using offline desktop applications (manually, automatically or in batch mode), using command line interface (CLI), online converters, a virtual printer or a script file.

How to convert xps to pdf offline?

The simplest way to convert between XPS and PDF files we can think of is to use a standalone desktop software called VeryDOC XPS to PDF Converter Command Line application, this application can be downloaded from this web page,

https://www.verydoc.com/xps-to-pdf.html
http://www.verydoc.com/xps2pdf.zip

VeryDOC XPS to PDF Converter Command Line software can be used easily to convert from XPS files to PDF files. Besides saving to PDF, it also converts multiple XPS files to image formats, such as JPG, TIFF or PNG.

VeryDOC XPS to PDF Converter Command Line has following options,

C:\>E:\xps2pdf\xps2pdf.exe
XPS to PDF Converter Command Line v2.0
XPS to PDF Converter does convert XPS files to PDF, EPS, PS, BMP, TIFF, JPEG, PNG, PCX, etc. formats.
http://www.verypdf.com
http://www.verydoc.com
Email: support@verydoc.com
Release Date: Feb 16 2019
Usage: xps2pdf [options] <xps-file> [<out-file>]
  -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
  -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 AES encryption (Acrobat 7 or higher)
  -permission <int>     : Restrictions
        -permission 0  : Deny anything
        -permission 1  : Allowed print the document
        -permission 2  : Allowed modify the content of the document
        -permission 4  : Allowed copy text and graphics from the document
        -permission 8  : Allowed add or modify annotations
        -permission 16 : Allowed fill in interactive form fields
        -permission 32 : Allowed extract text and graphics from the document
        -permission 64 : Allowed assemble the document
        -permission 128: Allowed print the document with high resolution
  -linearize            : Optimize PDF file for fast web view
  -width <int>          : Set page width to PDF file
  -height <int>         : Set page height to PDF file
  -multipagetif         : Create multipage TIFF format
  -xres <int>           : Set X resolution to image file
  -yres <int>           : Set Y resolution to image file
  -bitcount <int>       : Set color depth for image conversion
  -useprinter           : Convert XPS to PDF file using Viirtual Printer
  -skip                 : don't overwrite an output file if it already exists
  -$ <string>           : input registration key
Examples:
   xps2pdf.exe C:\in.xps C:\out.pdf
   xps2pdf.exe C:\in\*.xps C:\out\*.pdf
   xps2pdf.exe -producer "Test Producer" -creator "Test Creator" -subject "Test Subject" C:\in.xps C:\out.pdf
   xps2pdf.exe -linearize C:\in.xps C:\out.pdf
   xps2pdf.exe -ownerpwd 123 -keylen 2 -permission 128 C:\in.xps C:\out.pdf
   for /r D:\test %F in (*.xps) do "xps2pdf.exe" "%F" "%~dpnF.pdf"
   for %F IN (D:\test\*.xps) DO "xps2pdf.exe" "%F" "%~dpnF.pdf"
   xps2pdf.exe -xres 600 -yres 600 C:\in.xps C:\out.jpg
   xps2pdf.exe -xres 600 -yres 600 C:\in.xps C:\out-%04d.jpg
   xps2pdf.exe -width 1024 -height 768 C:\in.xps C:\out-%04d.jpg
   xps2pdf.exe -xres 600 -yres 600 -bitcount 1 C:\in.xps C:\out-%04d.tif
   xps2pdf.exe -xres 600 -yres 600 -bitcount 1 C:\in.xps C:\out.tif
   xps2pdf.exe C:\in.xps C:\out.ps
   xps2pdf.exe C:\in.xps C:\out.eps
   xps2pdf.exe C:\in.xps C:\out.bmp
   xps2pdf.exe C:\in.xps C:\out.tif
   xps2pdf.exe C:\in.xps C:\out.jpg
   xps2pdf.exe C:\in.xps C:\out.png
   xps2pdf.exe C:\in.xps C:\out.pcx

"-useprinter" is a new option which included in the latest version of VeryDOC XPS to PDF Converter Command Line software, this option will execute following works,

1. Install a Virtual Postscript Printer into your system first.
2. Print XPS file to this Virtual Postscript Printer to create a PS file.
3. Convert the PS file to PDF or other formats.

"-useprinter" is a great option and it can maintain the contents and layout from original XPS files perfectly. "-useprinter" option will install a "VeryPDF Postscript Writer" virtual printer into your system, so you need use administrator privilege to run xps2pdf.exe application when you use "-useprinter" option, xps2pdf.exe will fail to install "VeryPDF Postscript Writer" virtual printer if it hasn’t administrator privilege option.

image

Without use of "-useprinter" option, VeryDOC XPS to PDF Converter Command Line software will parse the every elements from XPS file and write them to PDF file one by one, the speed of this conversion process is very fast.

If you encounter any problem with VeryDOC XPS to PDF Converter Command Line software, please feel free to let us know, we will assist you asap.

XPS Document Format: Open XML Paper Specification (also referred to as OpenXPS) is an open specification for a page description language and a fixed-document format. Microsoft developed it as the XML Paper Specification (XPS). It is an XML-based specification, based on a new print path (print processing data representation and data flow) and a color-managed vector-based document format that supports device independence and resolution independence. In Windows 8 .xps was replaced with the ECMA standard .oxps format which is not natively supported in older Windows versions.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in XPS to PDF And Image Converter | Tagged , , , , | Leave a comment

We are interested in the PS to PDF Converter SDK process of calling the conversion through our C# application seamlessly via the com object

I am interested in incorporating your PS to PDF conversion utility into my company's application. We are interested in the SDK process of calling the conversion through our application seamlessly via the com object - not by performing batch conversions through the .exe

also looking for compatibility - windows 10, windows 7, Server 2008, 2012, 2016 etc.

please advise.
Customer
----------------------------------------------------
Thanks for your message, you may download Postscript to PDF Converter SDK Server License or Developer License from this web page,

http://www.verydoc.com/ps-to-pdf.html
http://www.verydoc.com/ps2pdfsdk.zip

after you download it, you need run following command line with administrator privilege to register ps2pdfcom.exe into your system,

ps2pdfcom.exe /regserver

after you register it into your system, you can call "ps2pdfcom.ps2pdf" from your C# source code to convert from PS files to PDF files easily, for example,

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ps2pdfcom;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            string strInFile = appPath + "\\test.ps";
            string strOutFile = appPath + "\\_test.pdf";
            string strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX";

            string strCmd = strLicenseKey + " \"" + strInFile + "\" \"" + strOutFile + "\"";

            System.Type VeryPDFType = System.Type.GetTypeFromProgID
                ("ps2pdfcom.ps2pdf");
            ps2pdfcom.ps2pdf VeryPDFCom = (ps2pdfcom.ps2pdf)
                System.Activator.CreateInstance(VeryPDFType);
            VeryPDFCom.com_VeryPDF_PSToPDF(strCmd);
            MessageBox.Show("Converter finished.");
        }
    }
}

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in Postscript to PDF Converter | Tagged , | Leave a comment

How to call doc2pdf.exe with parameters from a batch file / Script without any human intervention (no pop_ups)?

Hello

I am planning to Purchase "DOC to PDF" / VeryPDF software for our company, however, I need to make sure that I do the following,

1 - Install the software on a server
2 - Can call doc2pdf.exe with parameters from a batch file / Script without any human intervention (no pop_ups)

Regards
Customer
----------------------------------------------------

image
Thanks for your message, yes, no problem, after you buy the docPrint SDK Server License or Developer License, you can call doc2pdf.exe from a batch file or script file without any human intervention.

docPrint SDK Server License is USD$399.00 per server, you may download and try it from this web page,

http://www.verypdf.com/app/document-converter/try-and-buy.html#buy_sdk
http://www.verypdf.com/artprint/docPrint-sdk.zip

btw, you can also download and try our VeryDOC DOC to Any Converter Command Line software from this web page,

http://www.verydoc.com/doc-to-any.html
http://www.verydoc.com/doc2any_cmd.zip

You can call doc2any.exe from a Windows Service or ASP, PHP, C#, .NET etc. program languages easily, this web page will let you know how to call it from a web server application,

http://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in DOC to Any Converter | Tagged , | Leave a comment

We are running the command below to convert an excel file to a pdf from Task Scheduler. The command is in a batch file.

Hi - We are running the command below to convert an excel file to a pdf. The command is in a batch file. If we execute the batch file directly it works fine, but if we try to use Task Scheduler to execute the batch file it hangs.

Is there something special about using the office option that we need to have setup? We do have Microsoft Excel installed.

REM --> Convert the Consolidated Bill .xlsx to .pdf file
doc2any -useoffice 1 -useprinter -log log.txt "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\SpaceX_Output.xlsx" "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\ConsolidatedBill.pdf"

This seems to also only happen if we try to use Office. Below is a sample of the command in a batch file that runs fine from the Task Scheduler.

REM --> Convert the Consolidated Bill .xlsx to .pdf file
doc2any.exe -nooffice -useprinter "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\SpaceX_Output.xlsx" "C:\EBICustom\Test\Server\PDF Invoice\SpaceX\SpaceXTemp\ConsolidatedBill.pdf"

Thank you

Ashley Ryum
IT Business Analyst
------------------------------------------

image
We apologize for any inconvenience this may have caused to you, because MS Office can't be run from a System or Local System user account, so you need run MS Office from an interactive user account to convert office files to PDF files.

Please look at following web pages we hope these web pages will useful to you,

http://www.verydoc.com/others/configure%20office%20applications%20to%20run%20under%20the%20interactive%20user%20account.htm

http://www.verydoc.com/others/configure-word-and-excel.htm

http://www.verydoc.com/blog/aspnet-account-dcom-permisson-for-ms-word.html

You can also use "-nooffice" option to convert from Office documents to PDF files from Task Scheduler directly, please look at following web page for more information,

http://www.verydoc.com/blog/verydoc-doc-to-any-converter-command-line-v3-5-release-notes-convert-word-to-pdf-without-office-and-openoffice.html

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in DOC to Any Converter | Tagged | Leave a comment
Page 3 of 33412345...102030...Last »