Announcement

Collapse
No announcement yet.

Convert multiple pages in multiple PDF files in Batch mode to JPG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert multiple pages in multiple PDF files in Batch mode to JPG

    Hallo

    How can I save all pages from many PDF files in Batch mode?

    I have 30 PDF Files which each have two pages, I want to convert them all to JPG. So in the end I should have 60 JPG-files, named e.g. mypdf1_1.jpg, mypdf1_2.jpg, mypdf2_1.jpg ... mypdfn_2.jpg
    Is this possible?

    At the moment batch conversion does only convert the first page and I dont find any setting in the Batch conversion about this.

    Thank
    frank

    #2
    Try this:

    at the bottom right of the Advanced dialog in Batch mode

    Click image for larger version

Name:	Capture_20241029-155155.jpg
Views:	406
Size:	52.6 KB
ID:	98699
    click Apply changes to all pages

    Comment


      #3
      Unfortunately this setting (I had it checked already) doesnt change it.
      OK then, I see, its not possible.
      Irfan is mighty but not allmighty
      Have to do it by hand
      Thank.frank

      Comment


        #4
        I should have tested it. pdftk can "burst" multi page PDFs to multiple single page PDFs. Then IV could convert them to jpgs.

        pdftk <your PDF> burst output <name>_%04d.pdf

        will produce numbered PDFs. ptftk is free.

        Comment


          #5
          I discovered something. While the batch convert using the "Batch conversion" dialog doesn't modify every page in the PDF, calling IV with a script does. I use:

          for %%f in ( %* ) do (
          i_view64.exe %%~nxf /advancedbatch /convert=%%~nf_dark%%~xf
          set outfile=%%~nf_dark%%~xf
          )
          set argC=0
          for %%x in (%*) do Set /A argC+=1
          echo %outfile%
          if %argC% EQU 1 start "" %outfile%

          This should be saved in a cmd file and run in a command window in the directory with the PDF to be modified. I have additional scripts so this can be run by drag and drop. If run with multiple PDFs on the command line it will modify them all. It produces a new PDF for each file with "_dark" added to the name (I use it to darken and add contrast to PDFs. I uses the parameters you set up in the "Batch conversion" dialog. You can copy the i_view64.ini file from C:\Users\<your name>\AppData\Roaming\IrfanView directory to a new directory and add the /ini="<your new directory>" switch just before the /advancedbatch switch to have a permanent copy of the parameters that isn't changed if you use the "Batch conversion" dialog for something else.

          the last part of the script automatically opens the modified PDF if only one file is modified.

          Comment

          Working...
          X