How to do batch conversion with VeryPDF command line software?

In order to help VeryPDF software users to do batch conversion by command line  more easily, I  put an article here. This way is apt for nearly all the command line software of VeryPDF.

for %F in (D:\temp\*.pdf) do echo "%F" "%~nF.pdf"
for %F in (D:\temp\*.pdf) do echo "%F" "%~dpnF.pdf"
for %F in (D:\temp\*.pdf) do echo "%F" "C:\test\%~nF.xls"
for /d %F in (d:\temp\*.*) do echo "%F"
for /r D:\test %F in (*.pcl) do "C:\test.exe" "%F" "%~dpnF.pdf"
for /r D:\test %F in (*.zip) do echo "%F" "%~dpnF.pdf"

  • You can use following one command line to do batch conversion at one time easily.

Take  Doc to any converter for example.

#1: Convert all DOC files to PDF files in D:\temp folder,

for %F in (D:\temp\*.doc) do "C:\VeryPDF\doc2any.exe" "%F" "%~dpnF.pdf"

#2: Convert all DOC files to PDF files in D:\temp folder and sub-folders (recursion),

for /r D:\temp %F in (*.doc) do "C:\VeryPDF\doc2any.exe" "%F" "%~dpnF.pdf"

  • You can do samething in .bat file, but you need use "%%" to instead of "%" in .bat file.

Take Advance PDF tool for example.

for %%F in ("D:\temp\*.pdf") do "C:\VeryPDF\pdftools.exe" "%%F" "%%~nF.pdf"

for %%F in ("%CD%\*.pdf") do echo "%%F" "%%~nF.pdf"

#1: Process all PDF files in D:\temp folder,

for %F in (D:\temp\*.pdf) do pdfrename.exe -find "invoice" "%F"

#2: Process all PDF files in D:\temp folder and sub-folders (recursion),

for /r D:\temp %F in (*.pdf) do pdfrename.exe -find "invoice" "%F"

in .bat file, you need use "%%" to instead of "%" in .bat file, because "%" is a keyword in .bat file,

for /r %CD% %%F in (*.doc;*.xls;*.ppt) do "C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i "%%F" -o "%%F-%%02d.jpg" -r 43x50 -g 1-2 -E 0 -s killoffice=1

for /r %CD% %%F in (*.doc;*.xls;*.ppt;*.docx;*.xlsx;*.pptx) do "C:\doc2any\doc2any.exe" "%%F"  "%%F-out.pdf"

for %%F in (%cd%\*.htm) do html2pdf.exe "%%F" "%%~dpnF.pdf" "paperType=6,Overwrite=yes, margin_top=20,margin_bottom=10, margin_right=1,margin_left=10"

You can also use .bat file to monitor a folder, when a document is coming, this .bat file will call EXE application to convert this document to PDF or other formats automatically,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REM @ECHO OFF
:retry
for %%F in (C:\test\*.tif) do (
E:\image2pdf_cmd3.50\img2pdf.exe -o "D:\temp\%%~nF.pdf" "%%F"
move "%%F" "%%F.bak"
)
ping -n 5 127.0.0.1 > nul
goto retry
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REM @ECHO OFF
:retry
for %%F in (C:\test\*.doc) do (
E:\doc2any\doc2any.exe "%%F" "D:\out\%%~nF.pdf"
move "%%F" "%%F.bak"
)
ping -n 5 127.0.0.1 > nul
goto retry
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for %%F in (C:\VeryPDF\*.pdf) do (
pdf2img.exe -$ XXXXXXXXXXXX -mono -r 300 -multipage "%%F" "%%F.tif"
del "%%F")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you have any question about the software or file format conversion, you are welcome to contact us by the ways supported on this website. Or you can search the best software on VeryPDF Software company official website.

VN:F [1.9.20_1166]
Rating: 10.0/10 (3 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to do batch conversion with VeryPDF command line software?, 10.0 out of 10 based on 3 ratings

Related Posts

This entry was posted in DOC to Any Converter and tagged , . Bookmark the permalink.

3 Responses to How to do batch conversion with VeryPDF command line software?

  1. Pingback: Document to PDF Online Converter and Document to Image Online Converter | VeryPDF Knowledge Base

  2. Pingback: How

  3. VeryDOC says:

    I have been testing a version of your converter. Looks really really fantastic.

    1) Can you tell me if it is possible to convert folders?

    pdf2img.exe C:\test\ C:\test\

    2) Can you tell me if it is possible to convert folders specify wild cards with PDF filenames for example:
    pdf2img.exe C:\*.pdf C:\*.tif

    3) Is it possible to recursively convert sub directories?
    i.e. a parent folder and all its subdirectories.
    c:\pdf2img.exe C:\test\ C:\test\ /all subfolders too…

    Thanks,
    Customer
    —————————————–

    >>1) Can you tell me if it is possible to convert folders?
    >> pdf2img.exe C:\test\ C:\test\

    Please run following command line to batch convert all PDF files to TIFF files in one folder,

    for %F in (D:\temp\*.pdf) do “C:\VeryPDF\pdf2img.exe” “%F” “%~dpnF.tif”

    >>2) Can you tell me if it is possible to convert folders specify wild cards with PDF filenames for example:
    >> pdf2img.exe C:\*.pdf C:\*.tif

    Yes, please run following command line to try,

    for %F in (D:\temp\*.pdf) do “C:\VeryPDF\pdf2img.exe” “%F” “%~dpnF.tif”

    >>3) Is it possible to recursively convert sub directories?
    >>i.e. a parent folder and all its subdirectories.
    >>c:\pdf2img.exe C:\test\ C:\test\ /all subfolders too…

    Yes, please run following command line to try,

    for /r D:\temp %F in (*.pdf) do “C:\VeryPDF\pdf2img.exe” “%F” “%~dpnF.tif”

    Please look at more batch command line examples from following web pages,

    http://www.verydoc.com/blog/how-to-do-batch-conversion-with-verypdf-command-line-software.html
    http://www.verypdf.com/wordpress/201403/how-to-batch-converting-pdf-files-to-tiff-files-with-wildcard-run-pdf2img-exe-with-wildcard-for-batch-conversion-40317.html

    VeryPDF

    [Reply]

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!