How to batch converting PDF files to TIFF files with wildcard? Run pdf2img.exe with wildcard for batch conversion.

Hello,

I purchased your PDF to Image program today and have some questions.

The attached is what I need to process. You can see that I have ~1100 folders with an average of 150 PDFs in each. Executing this .bat file on the same server where the files are located is estimated to run 130+ hours to process 150K+ PDFs. Each PDF has a single page and standard resolutions. Server is a Hyper-V VM (Xeon X5460 3.16 GHz (2 Processors); 64 GB RAM; RAID-10 array with plenty of disk space free and drive highly defragged.

1. Is there a more efficient way to do this? .bat file appears to have to load your .exe each time. Is there a wild card variant I could use to process all PDFs in a single folder and output to another folder of choice?

2. In the Windows GUI, is there a way to specify folders not just files? And will the GUI run faster than the command line?

++++++++++++++++++++++++++++++++++++++++++++++
c:
cd C:\Program Files (x86)\VeryPDF PDF to Image Converter v3.0
pause
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000000.pdf" -o "E:\GF #00-100\00000000.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000002.pdf" -o "E:\GF #00-100\00000002.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000003.pdf" -o "E:\GF #00-100\00000003.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000005.pdf" -o "E:\GF #00-100\00000005.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000006.pdf" -o "E:\GF #00-100\00000006.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000007.pdf" -o "E:\GF #00-100\00000007.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000008.pdf" -o "E:\GF #00-100\00000008.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000009.pdf" -o "E:\GF #00-100\00000009.tif"
pdf2img.exe -r 300 -c g4 -i "E:\GF #00-100\00000010.pdf" -o "E:\GF #00-100\00000010.tif"
++++++++++++++++++++++++++++++++++++++++++++++

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

You may download PDF to Image Converter Command Line from following web page to try,

https://www.verypdf.com/app/pdf-to-image-converter/try-and-buy.html
https://www.verypdf.com/dl2.php/pdf2image_win.zip

You can run following command line to convert your PDF file to TIFF file properly,

pdf2img.exe -r 300 -compress 4 -mono C:\in.pdf C:\out.tif

VeryPDF
----------------------------------------------
Thank you for your reply but it seems you have not answered my two questions.
Please re-read my original post and answer the following:

1. Is there a more efficient way to do this? .bat file appears to have to load your .exe each time. Is there a wild card variant I could use to process all PDFs in a single folder and output to another folder of choice?

2. In the Windows GUI, is there a way to specify folders not just files? And will the GUI run faster than the command line?

Customer
----------------------------------------------
>>1. Is there a more efficient way to do this? .bat file appears to have to load your .exe each time. Is there a wild card variant I could use to process all PDFs in a single folder and output to another folder of choice?

You can simple run following command line to convert all PDF files in D:\temp folder to TIFF files, the output TIFF files will be placed to D:\out folder,

for %F in (D:\temp\*.pdf) pdf2img.exe -r 300 -compress 4 -mono "%F" "D:\out\%~nF.tif"

You can also convert all PDF files in D:\temp folder and subfolders to TIFF files at one time, place output TIFF files to D:\out folder,

for /r D:\temp %F in (*.pdf) do pdf2img.exe -r 300 -compress 4 -mono "%F" "D:\out\%~nF.tif"

Above two command lines can be used easily, please to try.

>>2. In the Windows GUI, is there a way to specify folders not just files? And will the GUI run faster than the command line?

GUI application hasn't a way to add a folder yet, we are planning add this function in the future releases.

No, the command line version is work faster than GUI version, you can write this command line into a .bat file, you can simple double click to run it when you need to do the conversion in the future.

But please notice a matter, when you write this command line into .bat file, you need use %% to instead of % in the command line, e.g.,

for %%F in (D:\temp\*.pdf) pdf2img.exe -r 300 -compress 4 -mono "%%F" "D:\out\%%~nF.tif"

for /r D:\temp %%F in (*.pdf) do pdf2img.exe -r 300 -compress 4 -mono "%%F" "D:\out\%%~nF.tif"

VeryPDF

学校 Please refer to some more command line examples for "for" command at below,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:\temp %F in (*.pcl) do echo "%F" "%~dpnF.pdf"
for /r D:\temp %F in (*.zip) do echo "%F" "%~dpnF.pdf"
for /r D:\temp %F in (*.pdf) do echo "%F" "%~dpnF.pdf"
for /r D:\temp %F in (*.pdf) do echo "%F" "C:\test\%~nF.pdf"
for %F in (D:\temp\20*.doc) do "D:\Program Files (x86)\docPrint Pro v5.0\doc2pdf.exe"  -f 9 -i "%F" -o "X:\INVOICES\%~nF.pdf"

//You can use following one command line to batch convert all of your files at one time easily,

#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 same thing in .bat file, but you need use "%%" to instead of "%" in .bat file,

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"

You need use %% to replace % in .bat file, for example,

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 %%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"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

VN:F [1.9.20_1166]
Rating: 7.0/10 (3 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
How to batch converting PDF files to TIFF files with wildcard? Run pdf2img.exe with wildcard for batch conversion., 7.0 out of 10 based on 3 ratings

Related Posts

One Reply to “How to batch converting PDF files to TIFF files with wildcard? Run pdf2img.exe with wildcard for batch conversion.”

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

    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!