DOC to Any Converter

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
------------------------------------------------

Failed to run doc2any.exe from a schedule job, the schedule job is being run "with highest privileges" on Server 2016
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,

https://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

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

https://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,

https://www.verydoc.com/exeshell.html#CmdAsUser_Command_Line_Tool
https://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,

https://www.verydoc.com/blog/running-doc2any-as-a-scheduled-task.html
https://www.verydoc.com/blog/how-to-call-doc2any-exe-from-asp-code.html

VeryDOC

PDF to PDF/A Converter

Font missing problem when converting PDF to PDF/A

Hello,

We use pdf2pdfa.exe to convert normal pdf:s to PDF/A but some pdf-files won't convert correctly. They seem to be corrupt after conversion.

The thing is that it only happens when we use VCL-components (Delphi) from DevExpress.com so our conclusion is that DevExpress put something into the files that shouldn't be there...

Maybe we can send you a PDF-example so you can determine what's wrong with the file? Then we can point this out to Devexpress.

We use this line for i.e.. (I can send license in an e-mail).

pdf2pdfa.exe "-$" "license" -mode 2 Report.pdf ReportA.pdf

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

Font missing problem when converting PDF to PDF/A
https://www.verydoc.com/pdf-to-pdfa.html
https://www.verydoc.com/pdf2pdfa_cmd.zip

We suggest you may add "-repair2" option to try again, for example,

pdf2pdfa.exe -repair2 -mode 2 D:\downloads\Tahoma.pdf D:\downloads\Tahoma-pdfa.pdf

pdf2pdfa.exe -repair2 -mode 2 D:\downloads\test.pdf D:\downloads\test-pdfa.pdf

We hope "-repair2" option will solve this problem to you.

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

Font missing problem when converting PDF to PDF/A

PDF/A is a version of Portable Document Format designed for archiving and preservation. Due to its popularity, many electronic documents exist in PDF format, and the ability to convert an existing PDF into a conforming PDF/A file is as important, if not more, as being able to produce documents in PDF/A format. The Florida Digital Archive conducted a study to select a PDF to PDF/A conversion application as part of its format normalization strategy in the summer of 2012. This article documents the evaluation process and presents the results in such a way that they provide insight into challenges and potential drawbacks during similar evaluation or implementation.

Difference between PDF and PDF/A
The main difference between PDF and PDF/A is that the latter has specific requirements that the regular PDF format does not. The reason why PDF/A enforces these requirements is to make sure that whatever software is used in the distant future will be able to support the file and display all its contents properly.

Types of PDF/A conversion
The two main levels of conformance you can choose from are:

PDF/A-1a (accessible): This conformance level has strict requirements; your document must contain tagging, document structure (hierarchy), language specification, and Unicode mappings. This level is accessible for visually impaired users.

PDF/A-1b (basic): This conformance level has minimum requirements. It does not require tagging, hierarchy, etc. It can be created from a scanned document instead of an existing digital file.

PDF/A restrictions
Unfortunately, you will not be able to include any audio/video content when you are using a PDF/A converter, nor will you be able to include encryption and JavaScript. The reason why is simple – that type of content is too heavy for long-term digital file preservation, and, as mentioned earlier, future software might not be able to support it.

When archiving a PDF file, you want to ensure the file is lightweight and follows all the PDF/A conformance rules, otherwise it may not be accessible to future users due to the compliance being broken.

DOC to Any Converter

Convert specific sheet in XLSX to CSV, how to convert Excel to CSV and export Excel files to CSV UTF-8 format

I need to convert a sheet of a multi sheet Excel to CSV using command line. how do I do it?

I would like to see a list of all available parameters for the convert. e.g. how i pass the password when the Excel file is password protected?

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

Convert specific sheet in XLSX to CSV, how to convert Excel to CSV and export Excel files to CSV UTF-8 format
Thanks for your message, we suggest you may download "VeryDOC DOC to Any Converter Command Line" from this web page to try, you can use "VeryDOC DOC to Any Converter Command Line" to convert from Excel to CSV file easily,

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

after you download and unzip it to a folder, you can run following command line to convert a XLS to CSV file,

doc2any.exe -useoffice 1 D:\test.xls D:\out.csv

If your XLS contains password, you may pass the password to doc2any.exe by "-password" option, for example,

doc2any.exe -useoffice 1 -password XXXXXXXX D:\test.xls D:\out.csv

VeryDOC

Comma-separated values (CSV) is a widely used file format that stores tabular data (numbers and text) as plain text. Its popularity and viability are due to the fact that a great deal of programs and applications support csv files, at least as an alternative import / export format. Moreover, the csv format allows users to glance at the file and immediately diagnose the problems with data, if any, change the CSV delimiter, quoting rules, etc. All this is possible because a CSV file is plain text and an average user or even a novice can easily understand it without any learning curve.

Convert Excel data to CSV file
Export Excel to CSV UTF-8 or UTF-16
Other ways to convert Excel to CSV (keeping special characters)

DOC to Any Converter

I wanted to get a progress of converting pdf

Hi.

I wanted to get a progress of converting pdf.

Meanwhile, I saw that get the progress is possible in this site. ( http://www.verypdf.com/wordpress/201106/interest-in-doc2any-convert-office-to-flash-918.html )

So, I purchased the "DOC to Any Converter Command Line" this week.

https://www.verydoc.com/doc-to-any.html

But, I don't know how I can get the progress.

Let me know how I can.

I look forward to your responses.

Thank you
Customer
-----------------------------------------------

I wanted to get a progress of converting pdf
Thanks for your message, you may run a CMD window first, if you don't know how to run a CMD window, please look at this web page for more information,

https://www.verydoc.com/blog/10-ways-to-launch-the-command-prompt-in-windows.html

after you run the CMD window, you can run following command lines to convert from DOC, DOCX, XLS, XLSX, PPT, PPTX, etc. files to PDF files,

doc2any.exe C:\in.doc C:\out.pdf
doc2any.exe C:\in.ppt C:\out.pdf
doc2any.exe C:\in.xls C:\out.pdf
doc2any.exe C:\in.docx C:\out.pdf
doc2any.exe C:\in.pptx C:\out.pdf
doc2any.exe C:\in.xlsx C:\out.pdf
doc2any.exe C:\*.doc C:\*.pdf
doc2any.exe -margin 100x100x100x100 C:\in.rtf C:\out.pdf
doc2any.exe -append 2 -width 612 -height 792 C:\*.doc C:\out.pdf
doc2any.exe -append 2 C:\*.doc C:\out.pdf
doc2any.exe -width 612 -height 792 C:\in.doc C:\out.pdf
doc2any.exe -append 1 C:\in.doc C:\out.pdf
doc2any.exe -append 2 C:\in.doc C:\out.pdf
doc2any.exe -subject "subject" C:\in.doc C:\out.pdf
doc2any.exe -ownerpwd 123 -keylen 2 -encryption 3900 C:\in.doc C:\out.pdf
doc2any.exe -pdfver 7 C:\in.doc C:\out.pdf
doc2any.exe "C:\in.doc" C:\out.gif
doc2any.exe "C:\in.doc" C:\out.png
doc2any.exe -useprinter -xres 300 -yres 300 -bitcount 1 -compression 4 "C:\in.doc" "C:\out.tif"
doc2any.exe -useoffice 1 -useprinter -showofficeui "C:\in.doc" "C:\out.pdf"
doc2any.exe -printerpaper "3000x3000pt" -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper "8.5x11in" -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper "612x792pt" -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper "297x420mm" -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper "210x297mm" -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper 66 -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -printerpaper 8 -useoffice 1 -useprinter in.xls out.pdf
doc2any.exe -useprinter -useoffice 1 -showofficeui -delay 10000 -resetofficeview -debug "C:\in.doc" "C:\out.pdf"
doc2any.exe -useoffice 1 -useprinter -delay 5000 "C:\in.doc" "C:\out.pdf"
doc2any.exe -killoffice 0 -useprinter "C:\in.doc" C:\out.pdf
doc2any.exe -multipagetif -killoffice 0 -useprinter "C:\in.doc" C:\out.tif
doc2any.exe -multipagetif -bitcount 1 -xres 300 -yres 300 -killoffice 0 -useprinter "C:\in.doc" C:\out.tif
doc2any.exe -useprinter -compression 88880 "C:\in.doc" C:\out.tif
doc2any.exe -useprinter -compression 88881 "C:\in.doc" C:\out.tif
doc2any.exe -useprinter -compression 88883 "C:\in.doc" C:\out.tif
doc2any.exe -multipagetif -useprinter -compression 88880 "C:\in.doc" C:\out.tif
for %F in (D:\test\*.doc) do "doc2any.exe" "%F" "%~dpnF.pdf"
for /r D:\test %F in (*.doc) do "doc2any.exe" "%F" "%~dpnF.pdf"
doc2any.exe -useprinter -useoffice 1 -noretry -password 123456 D:\test.docx D:\out.pdf
doc2any.exe -useoffice 1 -checkpwd -noretry D:\test.docx D:\out.pdf
doc2any.exe -viewerzoom 1600 -viewpage 10 -viewpagemode 2 -view "C:\in.doc" C:\out.pdf
doc2any.exe -useprinter "C:\example.odt" "C:\openofficedoc.pdf"
doc2any.exe "C:\example.odt" "C:\openofficedoc.pdf"
doc2any.exe -installprinter -printername myprinter1 -printername2 myprinter2
doc2any.exe -width 800 "C:\test.doc" "C:\test.jpg"
doc2any.exe -height 800 "C:\test.doc" "C:\test.jpg"
doc2any.exe "C:\test.doc" "C:\out%.swf"
doc2any.exe "C:\test.ppt" "C:\slide%.swf"
doc2any.exe -swfopt "-j 100" "C:\test.ppt" "C:\slide%.swf"
doc2any.exe -useoffice 1 "C:\test.docx" "C:\test.htm"
doc2any.exe -useprinter -pagerange "2-3" "C:\test.docx" "C:\test.htm"
doc2any.exe -useprinter -pagerange "2,4-6,8-" "C:\test.docx" "C:\test.htm"
doc2any.exe -killoffice 1 -timeoutkillself 5000 C:\in.docx C:\out.pdf

Convert documents to PDF and other formats using OpenOffice ONLY (ignore MS Office):
doc2any.exe -useopenoffice "C:\test.doc" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.docx" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.xls" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.xlsx" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.ppt" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.pptx" "C:\out.pdf"
doc2any.exe -useopenoffice "C:\test.doc" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.docx" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.xls" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.xlsx" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.ppt" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.pptx" "C:\out.html"
doc2any.exe -useopenoffice "C:\test.docx" "C:\out.doc"

If you encounter any problem with doc2any.exe, please feel free to let us know, we will assist you asap.

See Also:

@VeryDOC Promotion

10 ways to launch the Command Prompt in Windows

Geeks and IT professionals love the Command Prompt and for good reason - it allows you to do many administrative tasks with ease. But what are all the possible ways to launch it? Have you thought about that? Some people have, us included, so we thought it would be a good idea to make a list with all the methods available for starting this tool. Read on and see them all:

1. Launch the Command Prompt using search (in Windows 10, Windows 7, and Windows 8.1)

In Windows 10, one of the fastest ways to launch Command Prompt is to use search. Inside the search field from your taskbar, enter command or cmd. Then, click or tap on the Command Prompt result.

clip_image002

If you want to launch Command Prompt as administrator, right-click (or tap and hold, if you use a touchscreen) on the Command Prompt search result, and then click/tap on “Run as administrator.”

clip_image004

Search is also very helpful in Windows 7. In this operating system, open the Start Menu, type command or cmd in the search field, and then press Enter or click on the Command Prompt shortcut.

clip_image006

To run Command Prompt as administrator, right-click on it and then click on the “Run as administrator” option from the contextual menu.

clip_image008

In Windows 8.1, switch to the Start screen and start typing command or cmd. Then, once the search results are displayed, press Enter on your keyboard or click/tap on the Command Prompt shortcut.

clip_image010

To run Command Prompt as administrator, right-click on its shortcut and then click/tap on “Run as administrator”.

clip_image012

2. Launch the Command Prompt using Cortana (Windows 10 only)

If you use Windows 10 and you have a microphone installed on your computer or device, you can also tell Cortana what you want to do. Say “Hey Cortana” if you enabled her to answer you anytime you call for her, or click/tap on the microphone icon from the search field on your taskbar. Then, ask Cortana to “launch Command Prompt.”

clip_image014

In just a moment, Cortana understands what you want and immediately launches the Command Prompt. Unfortunately, there is no command you could use to ask Cortana to launch Command Prompt as administrator.

3. Launch the Command Prompt using the Run window (in Windows 10, Windows 7, and Windows 8.1)

One of the quickest ways to launch the Command Prompt, in any modern version of Windows, is to use the Run window. A fast way to launch this window is to press the Win + R keys on your keyboard. Then, type cmd or cmd.exe and press Enter or click/tap OK.

clip_image016

4. Launch the Command Prompt from the Start Menu (in Windows 10 and Windows 7) or from the Start Screen (in Windows 8.1)

In Windows 10, open the Start Menu and go to the Windows System shortcuts folder. There, you can find a shortcut for Command Prompt.

clip_image018

If you want to run Command Prompt as administrator, right-click (or tap and hold, if you have a touchscreen) on its shortcut, then open the More sub-menu and finally, click or tap on “Run as administrator.”

clip_image020

If you are using Windows 7, open the Start Menu and go to All Programs. Then, open Accessories and click the Command Prompt shortcut.

clip_image022

To run it as administrator, right-click on its shortcut and then click the “Run as administrator” option.

clip_image024

In Windows 8.1, go to the Start screen. Click or tap on All apps and scroll right, until you find the Windows System folder. There, click or tap the Command Prompt shortcut.

clip_image026

If you want to run Command Prompt with administrative privileges, right-click (or tap and hold on it) and then click/tap on the “Run as administrator” option.

clip_image028

Read the second page of this article to learn more ways of opening the Command Prompt in any modern version of Windows.

5. Create a shortcut for the Command Prompt on your desktop (in Windows 10, Windows 7, and Windows 8.1)

If you prefer using your own shortcuts, then do not hesitate to create a shortcut to the Command Prompt.

clip_image030

Alternatively, you can download our collection of shortcuts and use what we have created: Download the biggest library of Windows shortcuts. In this pack, there are also plenty other useful shortcuts to download and use.

If you want to run the shortcut as administrator, right-click (or tap and hold on it, if you use a touchscreen), and then click or tap on the “Run as administrator” option from the contextual menu.

clip_image032

6. Pin Command Prompt to your taskbar, Start Menu or Start Screen (in Windows 10, Windows 7, and Windows 8.1)

If you would rather have a clean desktop, you might prefer to pin the Command Prompt to the taskbar, the Start Menu (in Windows 10 & Windows 7) or the Start Screen (in Windows 8.1).

clip_image034

Also, if you want to run Command Prompt as administrator, use the right-click menu on the shortcut pinned on your Start Menu, Start Screen or taskbar, and click/tap the “Run as administrator” option from it.

clip_image036

7. Launch the Command Prompt using the power user menu (in Windows 10 and Windows 8.1)

Windows 10 and Windows 8.1 include a hidden menu for power users which you can access from the desktop. The quickest way to launch it is to press the Win + X keys on your keyboard, but you can also do it with right-click (or tap and hold) on Windows logo from the bottom-left corner of your desktop.

In Windows 8.1 and early versions of Windows 10, this menu includes two shortcuts for the Command Prompt, one to run it as a normal user and one to run it as an administrator.

clip_image037

After the Creators Update was released, Windows 10 replaced the Command Prompt shortcuts with Powershell shortcuts. However, you can configure Windows 10 to go back to showing Command Prompt shortcuts in its power user menu.

clip_image039

8. Launch the Command Prompt using File Explorer (in Windows 10 and Windows 8.1) or Windows Explorer (in Windows 7)

You can also open Command Prompt using the address bar from File Explorer (in Windows 10 and Windows 8.1) or Windows Explorer (in Windows 7). All you have to do is type cmd in the address bar and press Enter. Then, a Command Prompt instance opens immediately, using the path of the folder you were in.

clip_image041

Unfortunately, you cannot open a Command Prompt as an administrator using this method.

9. Launch the Command Prompt using its executable file (in Windows 10, Windows 7, and Windows 8.1)

You can also open File Explorer (in Windows 10 and Windows 8.1) or Windows Explorer (in Windows 7). Go to the partition where Windows is installed, open the Windows folder and then System32. There you will find cmd.exe - the executable file used by Command Prompt.

clip_image043

Also, the easiest way to open it as an administrator is to right-click (or tap and hold it, if you have a touchscreen) and then click/tap on the “Run as administrator” option from the contextual menu.

clip_image045

10. Launch the Command Prompt using Microsoft Edge or Internet Explorer (in Windows 10, Windows 7, and Windows 8.1)

A somewhat cumbersome but workable method to launch Command Prompt in Windows is to use one of Microsoft’s web browsers to do it: Microsoft Edge or Internet Explorer. Use any of them to enter this command in the address bar: file://C:/Windows/System32/cmd.exe. Press Enter and then, in the dialog that opens, click or tap on the Run button.

clip_image047

This method only opens Command Prompt windows with standard user rights, not administrative privileges.

Conclusion

These are all the ways we know for launching Command Prompt in Windows 10, Windows 7, and Windows 8.1. If you know of others, do not hesitate to share them in a comment below. Also, if you are looking for some good articles on how to use the Command Prompt, do not hesitate to read our recommendations below.