How to Convert from XPS to PDF format and Convert from PDF to XPS format again?

  1. How to convert XPS to PDF from a Windows GUI application?
  2. How to automatically convert XPS to PDF from command line?
  3. How to batch convert XPS to PDF?
  4. How to convert XPS to PDF with a script?
  5. How to convert XPS to PDF from your own software?
  6. How to print XPS to PDF?
  7. How to print the XPS file to Any Windows Printer from Command Line or SDK?
  8. How to convert from PDF file back to XPS?

Both XPS (XML Paper Specification XPS, Open XML Paper Specification, OXPS) and PDF (Portable Document Format) formats are used to produce and share finalized documents: resumes, newsletters, invoices, legal documents, financial reports, tax returns and other types of documents. XPS (OXPS) format was meant to replace PDF as a universal standard for documents, but as for now PDF seems to have won this digital war.

image

Though both formats have pretty much the same functionality, XPS format, compared to PDF, 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), a virtual printer or a script file.

1. How to convert XPS to PDF from a Windows GUI application?

You can use VeryPDF XPS to Any Converter GUI to batch convert from XPS files to PDF files on your Windows system, XPS to Any Converter GUI is an offline desktop GUI application, you can use it to convert from XPS files to PDF files manually,

http://www.verypdf.com/app/xps-to-any-converter/index.html
http://www.verypdf.com/app/xps-to-any-converter/try-and-buy.html#buy
http://www.verypdf.com/dl2.php/verypdf-xps-to-any.exe

2. How to automatically convert XPS to PDF from command line?

You can use "VeryPDF XPS to Any Converter Command Line" or "VeryDOC XPS to PDF Converter Command Line" to batch convert from XPS files to PDF files from command line,

http://www.verypdf.com/app/xps-to-any-converter/try-and-buy.html#buy_cmd
http://www.verydoc.com/xps2pdf.zip

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

3. How to batch convert XPS to PDF?

You can use xps2pdf.exe to batch convert all XPS files in a folder and its sub-folders to PDF files with one command line easily, for example,

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"

4. How to convert XPS to PDF with a script?

You can call "VeryPDF XPS to Any Converter Command Line (xps2pdf.exe)" or "VeryDOC XPS to PDF Converter Command Line (xps2pdf.exe)" from your script or your own software to batch convert from XPS files to PDF files easily.

Command line interface lets system administrators and advanced users can take xps2pdf.exe into use and adapt it to their company's IT structure. For example, you can call xps2pdf.exe from the Windows Task Scheduler, from a batch, cmd or VBScript file. This allows to have your XPS documents changed to PDF without your presence - conversion will be scripted and/or scheduled.

5. How to convert XPS to PDF from your own software?

You can add commands related to xps2pdf.exe into the source code of the software you are developing or your own existing software. Here's an example set of commands written in C# which can be built into your programming code:

public void convert()
{
    string converterPath = @"D:\\VeryDOC\\xps2pdf.exe";
    string procArguments = "D:\\in.xps D:\\out.pdf";
    Process process = new Process();
    process.StartInfo.UseShellExecute = true;
    process.StartInfo.CreateNoWindow = true;
    process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
    // ProcessWindowStyle.Hidden;
    process.StartInfo.FileName = converterPath;
    process.StartInfo.Arguments = procArguments;
    process.Start();
    process.WaitForExit();
    process.Close();
    process.Dispose();
}

If you are prefer to use a SDK/DLL to instead of Command Line application, VeryDOC is also provide a XPS to PDF Converter SDK version, please feel free to contact us to require a demo version of this XPS to PDF Converter SDK product,

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

6. How to print XPS to PDF?

A simple way to convert XPS files is using a virtual printer instead of using a converter to PDF. If you don't have any virtual printer installed yet, try using VeryPDF Document Converter (docPrint Pro). It can save your XPS to PDF, which can be later printed on a regular printer, if necessary. VeryPDF Document Converter (docPrint Pro) can also save your XPS file as an image file - BMP, DCX, GIF, JPEG, PCX, PNG or TIFF.

The instruction below lets you converting files one by one, however, you can also set up batch conversion to PDF to process multiple files pretty fast.

Instruction:
Download and install VeryPDF Document Converter (docPrint Pro) from this web page first.

http://www.verypdf.com/app/document-converter/try-and-buy.html#buy_pro
http://www.verypdf.com/artprint/docprint_pro_setup.exe

* Open an XPS file you want to convert to PDF.
* Click "File" > "Print".
* Select docPrint or docPrint PDF Driver as printer and click "Print", you will able to save to PDF file easily.

7. How to print the XPS file to Any Windows Printer from Command Line or SDK?

If you wish integrate a XPS printing function into your system, you can test with PDFPrint Command Line or PDFPrint SDK product, you may download them from this web page,

http://www.verypdf.com/app/pdf-print-cmd/try-and-buy.html#buy
http://www.verypdf.com/pdfprint/pdfprint_cmd.zip
http://www.verypdf.com/pdfprint/pdfprint_sdk.zip

Please look at following web page for more information about printing function in both PDFPrint Command Line and PDFPrint SDK products,

[VeryPDF Release Notes] VeryPDF Released PDFPrint Command Line v7.0 today, the new version supports batch print XPS files to physical and virtual printers and PDF, PCL, PS, EPS, TIFF, JPG, PNG, XPS, EMF, WMF etc. formats,
http://www.verypdf.com/wordpress/201804/verypdf-release-notes-verypdf-released-pdfprint-command-line-v7-0-today-the-new-version-supports-batch-print-xps-files-to-physical-and-virtual-printers-and-pdf-pcl-ps-eps-tiff-jpg-png-xps-e-43798.html

8. How to convert from PDF file back to XPS?

image

You can use VeryDOC PDF to Vector Converter Command Line or PDF to Vector Converter SDK to convert from PDF files to XPS files, you may download VeryDOC PDF to Vector Converter Command Line or PDF to Vector Converter SDK from this web page to try,

http://www.verydoc.com/pdf-to-vector.html
http://www.verydoc.com/pdf2vec_cmd.zip
http://www.verydoc.com/pdf2vec_sdk.zip

after you download PDF to Vector Converter Command Line software, you can run following command lines to batch convert from PDF files to XPS and other formats,

pdf2vec.exe C:\in.pdf C:\out.emf
pdf2vec.exe C:\in.pdf C:\out.wmf
pdf2vec.exe C:\in.pdf C:\out.ps
pdf2vec.exe C:\in.pdf C:\out.eps
pdf2vec.exe C:\in.pdf C:\out.svg
pdf2vec.exe C:\in.pdf C:\out.swf
pdf2vec.exe C:\in.pdf C:\out.xps
pdf2vec.exe C:\in.pdf C:\out.hpgl
pdf2vec.exe C:\in.pdf C:\out.plt
pdf2vec.exe C:\in.pdf C:\out.pcl

image

Questions?
Should you have any questions or issues related to converting from XPS to PDF or vice versa, please don't hesitate to contact us. Or if you know some tips or other ways we didn't mention here, please let us know (http://support.verypdf.com/open.php )! We will update this article.

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 PDF to Vector Converter, XPS to PDF And Image Converter | Tagged , | Leave a comment

PDF document properties field problem and description of modes with PDF to PDF/A Converter Command Line software

Hello! Your PDF to PDF/A Converter Tool works well but we have one problem with PDF-Fields (author, producer, creator, subject). We have tried to use these parameters but the edited PDF has no data in these fields!

We ask to help!

Thank you in advance.
Customer
------------------------------------

image
Thanks for your message, you can use following options to set author, producer, creator, subject options into PDF 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

VeryDOC
------------------------------------
Hello! Please describe all available modes for your wonderful tool! We haven't found any description of Option -mode

Thank you!
Customer
------------------------------------
Thanks for your message, pdf2pdfa.exe supports following modes,

pdf2pdfa.exe -mode 0 C:\in.pdf C:\pdfa-out.pdf
pdf2pdfa.exe -mode 1 C:\in.pdf C:\pdfa-out.pdf
pdf2pdfa.exe -mode 2 C:\in.pdf C:\pdfa-out.pdf
pdf2pdfa.exe -mode 22 C:\in.pdf C:\pdfa-out.pdf
pdf2pdfa.exe -mode 4 C:\in.pdf C:\pdfa-out.pdf

In general, "-mode 2" works best, you can always use "-mode 2" option to convert all of your PDF files to PDF/A files.

VeryDOC
------------------------------------
Here is the detailed command line options for PDF to PDF/A Converter Command Line v2.0 software,

PDF to PDF/A Converter Command Line v2.0
http://www.verypdf.com
http://www.verydoc.com
Email: support@verydoc.com
Release Date: Oct 13 2015
Usage: pdftools [options] <pdf-file> [<out-pdf>]
  -cl <int>           : set color space, 0 is RGB, 1 is CMYK, 2 is grayscale
      -cl 0 : use RGB  ICC profile for device-specific color spaces
      -cl 1 : use CMYK ICC profile for device-specific color spaces
      -cl 2 : use GRAY ICC profile for device-specific color spaces
  -quick              : convert PDF to PDF/A by quick mode, same as "-mode 1"
  -mode <int>         : convert PDF to PDF/A by various modes, e.g, 0, 1, 2, 22, 4, etc.
  -skip               : don't overwrite an output file if it already 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
  -startpage <int>    : Set the current page when open the file
  -openaction <string>: Set OpenAction to PDF file
      OpenAction includes "FitBH", "FitH", "Fit", etc., for example:
      -openaction "FitBH" or -openaction "50"
      -openaction "50" means display pages with magnification=50%.
  -reset              : Reset all PDF/A configuration files
  -repair             : Repair damaged PDF file automatically
  -$ <string>         : input registration key
Examples:
   pdf2pdfa.exe C:\in.pdf C:\out.pdf
   pdf2pdfa.exe C:\in\*.pdf C:\out\*.pdf
   pdf2pdfa.exe -producer myproducer -creator mycreator C:\in.pdf C:\out.pdf
   pdf2pdfa.exe -startpage 2 C:\in.pdf C:\out.pdf
   pdf2pdfa.exe -startpage 2 -openaction 100 C:\in.pdf C:\out.pdf
   pdf2pdfa.exe -reset C:\in.pdf C:\out.pdf
   pdf2pdfa.exe -quick C:\in.pdf C:\out.pdf
   pdf2pdfa.exe -mode 0 C:\in.pdf C:\pdfa-out.pdf
   pdf2pdfa.exe -mode 1 C:\in.pdf C:\pdfa-out.pdf
   pdf2pdfa.exe -mode 2 C:\in.pdf C:\pdfa-out.pdf
   pdf2pdfa.exe -mode 22 C:\in.pdf C:\pdfa-out.pdf
   pdf2pdfa.exe -mode 4 C:\in.pdf C:\pdfa-out.pdf

PDF to PDF/A Converter Command Line home page,

http://www.verydoc.com/pdf-to-pdfa.html
http://www.verydoc.com/pdf2pdfa_cmd.zip

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 PDF to PDF/A Converter | Tagged | Leave a comment

DWG to Image Command Line can not trim white margins from generated image files, DWG to JPG and PNG Converter

We've ordered the "DWG to Image Command Line End User License" software.

image

Now, we used the V3.2 program from your company website, and it can be run with the series number!

http://www.verydoc.com/dwg-to-image.html
http://www.verydoc.com/verydoc_dwg2image_cmd.zip

* We used version currently as below for your reference:*
DWGTools Converter Command Line v3.2
Convert DWG and DXF files to Raster BMP, JPG, PNG, TIFF, GIF formats.
Release Date: Nov  7 2016
Operating system: Windows 10 64bit

Although the program can running with serial number, we have some problem, please help us to check it.

(1) use "-debug" parameter:
Conversion fail, why is no any extra debugging information?!

(2) use "-dpi" parameter:
If we use the "-dpi" parameter, the conversion file has a lot of blank areas above and below (please see the attachment); and if we don't use the "-dpi" parameter, it automatically removes the blank. Is there any parameter that we can solve the blank space problem?!

(3) use "zoomtype" parameter:
We think to use "zoomtype 2 (Zoom Extents) parameter, It should be possible to remove the white space, but in fact, this parameter has no effect. Do you have any suggestion for that?!

(4) Could you please inform us which version program is running stability and suitable for us to use?!

Thanks for your assistance!

Best regards,
Customer
---------------------------------------------------------------------
Thanks for your message, here are answers to your questions,

1. Conversion fail, why is no any extra debugging information?

In general, the conversion fail may caused by high DPI value, the high DPI resolution will generate very big width and height values, such as an image file with 50000x50000 pixel or more dimension, if your system hasn't enough memory, it will show "Conversion fail" error message, in this case, you may reduce the DPI value to try again, e.g., "-dpi 10" or "-dpi 20",

dwg2img.exe -bgcolor 255 -dpi 20 test3.dwg _test3.png

btw, if you wish to remove highlight colors from PNG image file, you can run following command line to convert from color PNG image file to black and white image file,

imgconv.exe -threshold 98% _test3-trim.png _test3-bw.png

after you run above command line to process your image file, you will get a trimmed image file automatically.

2. In order to remove blank space from generated image files, you can use imgconv.exe application, imgconv.exe is included in the "verydoc_dwg2image_cmd.zip" package, you can run following command line to trim white margins from your PNG image files easily,

imgconv.exe -trim -border 50 -bordercolor white _test3.png _test3-trim.png

3. "zoomtype" parameter is just zoom DWG content to fit the paper size, it can't remove the margins, if you need to remove the margins, you need use imgconv.exe application.

4. You can always download the latest version from our website directly,

http://www.verydoc.com/dwg-to-image.html
http://www.verydoc.com/verydoc_dwg2image_cmd.zip

VeryDOC
---------------------------------------------------------------------

School How to convert your image to vector PDF, DXF, SVG formats (png to svg, jpg to svg, png to dxf, jpg to dxf, etc.)?

http://www.verypdf.com/raster-to-vector/online-raster-to-vector.html

image

VeryDOC has a Scan2CAD software also, with this Scan2CAD software, you can convert your images, such as PDF files, or BMP, or any other image, into a clean, editable Vector file, such as DXF, PDF, SVG, etc. formats.

Just open following web page in your web browser,

http://www.verypdf.com/raster-to-vector/online-raster-to-vector.html

image

Click on "Choose File" button to choose an architectural image, choose "Output Format" with PDF, SVG or DXF format, and choose some other options, after that, please click "Upload and Convert File" button, you will upload the raster image file to our server, our "Cloud Raster to Vector Converter" will convert this raster image file to vector DXF, PDF, SVG, etc. formats, you can download and save the converted vector file to your local system properly.

VN:F [1.9.20_1166]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
Posted in DWG to Image Converter | Tagged , , , , , , | 1 Comment

How to intercept a print job, convert it to PDF file or plain text file or image file and then forward the print job to another printer?

We have some customers who often ask us about how to intercept and capture the print jobs from Windows printer, save them to PDF or text or image files and then continue the printing, yes, this is a good question, VeryPDF docPrint Pro is a good software to implement this function, it can capture all print jobs, save them to various document formats, and then execute the printing continue.

docPrint Pro v8.0 can be downloaded from this web page,

http://www.verypdf.com/app/document-converter/document-converter.html
http://www.verypdf.com/app/document-converter/try-and-buy.html#buy_pro
http://www.verypdf.com/artprint/docprint_pro_setup.exe

Here is the release note for the docPrint Pro v8.0 software,

http://www.verypdf.com/wordpress/201804/verypdf-release-notes-verypdf-released-docprint-pro-v8-0-today-docprint-pro-v8-0-is-able-to-make-a-connection-between-docprint-and-other-windows-printers-43787.html

Here are some questions from our customers, just for your reference,

-------------------------------------------------------------------
I wish to intercept print jobs, read who they are from etc., and then only print them, if the program wants to.

Is there any documents or samples on doing such a thing, if so can some one point me to them, or give me a sample below?

Something on the pc prints (e.g. notepad), the program intercepts the print job (it does not get printed), if the program determines if the print job is worthy of being printed, then it will be printed.

Currently I'm using system.printing, to collect all the printers and find new print jobs,
pause them if they are new, read information about them, e.g. pages, paper size (have not figured out paper size yet), if they are to be printed, un-pause them, else cancel them.

This is not the best way, as i have to make the program auto close the print job window, if it is opened. Because un-pausing a print job, even for part of a second, lets the whole print job get to the printer.

Customer A
-------------------------------------------------------------------
How to Intercept Printer Data?

Could anybody tell me how can I create a small driver to intercept and capture information being sent to the printer and instead write it to a file?

Thanks.
Customer B
-------------------------------------------------------------------
I need to intercept a print order from a program like Core, Photoshop or Word and capture a series of data from it just like the print date, dimensions of impression etc. to save in a database and then release it to print.

Customer C
-------------------------------------------------------------------
Is there any way to intercept print jobs on network or local printer

Is there a way to monitor the print queue (before it gets to the print queue) and make sure that a particular user is only printing specified number of copy of a document? I want to find out how many copies of printout particular user had taken to maintain a record of this. How can I do that using Java Code or any other programing language?

Thanks In Advance...
Customer D
-------------------------------------------------------------------
How capture printer data before print, parsing and edit the data then send it to printer?

Any C# sample would be great.

I'm looking for source code or sample that get printer data before print (capture printer output) put it in variable and change some values then print it in form.

Any idea how to get data and put it into variable for special purpose?

Customer E
-------------------------------------------------------------------
How Do I Intercept Data Sent From A Printer Attached To Retail POS In A Store?

Hello,

Please I need help from experts familiar with printer technology, I'm designing a loyalty solution that will capture transactions performed in a retail store, I'd like to fetch the records of the items and amount sent to the printer for receipt printing. Is there a way I can intercept that data and store in a location for later collation?

Appreciate any ideas on this.
Customer F
-------------------------------------------------------------------
How to intercept a print job convert it to plain text and print?

Dear Experts,

I need some advice and tips for a new project i want to start.

I will be working with several bars and restaurants for a loyalty program.

Since all the customers already have a POS Software/Hardware from different vendors, i need to write a program to be able to capture in plain text the final invoice when the POS prints the final receipt.

The process should be something like:

1. The user send the command to the POS software to print the final check
2. The program will intercept the printing job, and create a plain text file and store it into the local PC.
3. The check is printed automatically
4. This should be done in silent mode, the user should not notice anything different.

My questions are:

1. Is this possible to do with POS printers like the ESPONS TM family printers?
2. First I want to build this for Windows XP to Windows 8.
3. Which programming language is more suitable for this task? I can use C# and Delphi.

I will give the max point available!!!

Thanks Experts!
Customer G
-------------------------------------------------------------------

VeryPDF docPrint Pro v8.0 has a printing capture and forwarding function, please by following steps to use this function,

1. Please download and install docPrint Pro v8.0 from this web page,

http://www.verypdf.com/app/document-converter/try-and-buy.html#buy_pro
http://www.verypdf.com/artprint/docprint_pro_setup.exe

2. If you are using 64bit Windows system, your default installation folder will be "C:\Program Files (x86)\docPrint Pro v8.0", you will see the files in this folder after you install it,

3. After you install the docPrint Pro v8.0 software, you can run following command line to connect docPrint and another printer together,

"C:\Program Files (x86)\docPrint Pro v8.0\artprint.exe" -forwardprinter

image

You will see following setting dialog for Printer Redirection,

image

You can select a target printer (forwarded printer) first, for example, you can choose "Microsoft XPS Document Writer" for test purpose, if you print documents to docPrint, docPrint will forward the print jobs to "Microsoft XPS Document Writer", you will get XPS files automatically.

If you want to get the PDF and Text files for each captured print job, you need to check "Save document as PDF" and "Extract to text files" two options.

OK, You can click "Save & Close" button to close this dialog.

4. Now, you can run MS Word application or other applications for printing purpose, you can open a Word document in MS Word application, print it to docPrint virtual printer, you will get a PDF file and a plain text file in predefined folder and also get a XPS file automatically.

image

This is the printing captured PDF document, the filename is "20180415113535_4_Microsoft Word - Original Filename.pdf", this PDF file looks fine,

image

You will also get a text file in the same folder, the text filename is "20180415113535_4_Microsoft Word - Original Filename.txt", this text file has same layout with original Word document and PDF file.

5. Everything is fine now.

We suggest you may download the trial version of docPrint Pro v8.0 to try, if you encounter any problem with it, please feel free to let us know, we are glad to assist you asap.

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in VeryDOC SDK & COM | Tagged , , , , , | Leave a comment

Failed to run doc2any.exe from a schedule job, the schedule job is being run "with highest privileges" on Server 2016

Using command line "doc2any.exe to convert DOCX files to PDFs" Conversion work properly when done with a user-interactive session. When this is run as a schedule job header information does not convert over to the PDF.

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

image
Thanks for your message, you can use "VeryPDFComRunCmd COM" to run doc2any.exe from an interactive user account, please look at following web pages for more information,

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

http://www.verydoc.com/blog/how-to-call-doc2any-exe-from-php-source-code.html

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

VeryDOC
------------------------------------------------
I don't see an answer to my problem in these pages.

Trying to run this conversion as a scheduled job where it simply converts all DOCX files in a folder to PDF, configured to run as a specific user account.

When script is run logged on as that user interactively the conversion works properly, when run as a scheduled job, as the same user, but not logged on interactively, the conversion runs successfully, but the MSWord doc header does not show up in the PDF and the formatting is messed up. Almost like it was converting to a RTF and then to a PDF.

The schedule job is being run "with highest privileges". OS - Server 2016.

Example attached.

Customer
------------------------------------------------
Yes, I understand this problem, because MS Word can't be run inside the system user account, you have to run it inside an interactive user account in order to convert from Word documents to PDF files properly.

You can use "VeryPDFComRunCmd COM" to run doc2any.exe from an interactive user account, however, if you wish to use a Command Line EXE instead of DCOM, you may use CmdAsUser.exe to do this work, CmdAsUser.exe is a command line application, you may download CmdAsUser.exe from this web page to try,

http://www.verydoc.com/exeshell.html#CmdAsUser_Command_Line_Tool
http://www.verydoc.com/download/cmdasuser.zip

Usage: CmdAsUser.exe <user> <domain> [/p <password>] [/c <command>]

Where:
<user> is the name of the user.
<domain> is the logon domain, specify a period '.' for local.
<password> (optional) is the users password.
<command> (optional) is the command line to execute as the specified user.

Notes:
If the password is not given then you will be prompted for it.
If the command is not given then "cmd" is assumed.
The calling process needs to either have administrative privileges (i.e. in the local adminstrators group) or at LEAST the following privileges:
"Act as part of the operating system" (SeTcbPrivilege),
"Bypass traverse checking" (SeChangeNotifyPrivilege),
"Increase quotas" (SeIncreaseQuotaPrivilege),
"Replace a process level token" (SeAssignPrimaryTokenPrivilege).
The utility may take a while if there is inappropriate security so please be patient.

Examples:

CmdAsUser.exe Martyn . /p GingerNinja /c regedit
CmdAsUser.exe test . /p 123 /c "C:\Program Files\docPrintPro v4.5\doc2pdf.exe" -i htttp://www.verypdf.com -o "C:\out.pdf"

for example, you can run following command line to run doc2any.exe from "Administrator" user account,

C:\doc2any\CmdAsUser.exe Administrator . /p password C:\doc2any\doc2any.exe C:\test.doc C:\out.pdf

Please look at following web pages for more information,

http://www.verydoc.com/blog/running-doc2any-as-a-scheduled-task.html
http://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.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 1 of 33012345...102030...Last »