A-PDF :: Affordable PDF Tools

How to merge multiple couples of PDF files into single ones together?

Return KB main page

Question

If I have multiple PDF files like 1001_a.pdf, 1001_b.pdf, 1002_a.pdf, 1002_b.pdf, 1003_a.pdf, 1003_b.pdf, etc., how can I only merge the _a with the _b together simultaneously?

Solution

You can write a bat file within A-PDF Merger (free download here) to carry out your requirement.

Create a .bat file with the below content:

@echo off

setlocal EnableDelayedExpansion

set pmcmd=d:\pdfpmcmd\pmcmd.exe

for %%i in (*_a.pdf) do (
set filea=%%i
set "fileb=!filea:_a=_b!"
set "fileo=!filea:_a=_o!"

echo %pmcmd% "!fileo!" "!filea!" "!fileb!"
%pmcmd% "!fileo!" "!filea!" "!fileb!"
)

Make sure the “pmcmd.exe” is in the right place you set in “set pmcmd=…”

This web tutorial will give you an overview of the procedure how easy to use this product!

Or view video tutorial here:

a-pdf-merger-video-tutorial-image

order

More Related Q&A

Related products

  • A-PDF Merger - Combine two or more image files or Acrobat PDF files into a single PDF document
  • A-PDF Split - Split any Acrobat PDF file into separate pdf files base on page, bookmark and more
  • A-PDF Merger Command Line - A command line tool to combine image and PDF files into one PDF.
  • A-PDF Split Command Line - A command line tool to split PDF file into separate pdf files.

We always like improving our products based on your suggestions. Please send your feedback (or ask questions) to us in the contact page.

Return KB main page