Megoldás pdftk-val
concatenate.bat
cmd /v /c d:\stuff\concat_pdftk\concatenatecmd.bat
concatenatecmd.bat
@echo off
del concat.* > nul
set str=
for %%i in (*.pdf) do set str=!str!%%i
d:\stuff\concat_pdftk\pdftk.exe %str%cat output concat.pdf
start concat.pdf
del concatenate.bat
Megoldás PDFLaTeX-hel
concatenate.bat
del concat.*
dir *.pdf /b > _list.txt
type concat.tex
echo \documentclass[%1]{article} >> concat.tex
echo \usepackage{pdfpages} >> concat.tex
echo \begin{document} >> concat.tex
for /f "tokens=1" %%i in (_list.txt) do echo \includepdf[pages=-]{%%i} >> concat.tex
echo \end{document} >> concat.tex
"C:\Program Files\MiKTeX 2.8\miktex\bin\pdflatex.exe" concat.tex
ren concat.pdf concat_.pdf
del concat.*
ren concat_.pdf concat.pdf
del _list.txt
concat.pdf
concatenate_portrait.bat
call d:\stuff\concatenate.bat portrait
del concatenate_portrait.bat
concatenate_landscape.bat
call d:\stuff\concatenate.bat landscape
del concatenate_landscape.bat