On last thursday I sent a script to the list to merge
automatically many pdf-files i.e. pages from a patent
to one pdf-file using the PDCAT-Program. Unfortunately
the format of the script was lost in the email so that
the program doesn't work any more.
I shortened the lines and hope that you can receive it
now properly.
-------- CUT HERE -------------------------------------
@ECHO off
REM * Makes a DIR-Command of all PDF-Files and merges
REM * these files to ONE File "Packed_Patent.pdf". PLEASE
REM * STORE ONLY ONE PATENT per DIRECTORY! You need pdcat.
REM * exe (http://www.glance.ch/GSE/PDF/PDF_SMP.htm) and
REM * this cmd-file stored somewhere in your PATH-Enviro-
REM * ment ( e.g. c:\winnt ). It is really not fast, but
REM * it should not care for the number for pages of the
REM * patent. Q&D, Peter Koenig 1999, pk@graffinity.com
DIR /w *.pdf | FINDSTR "pdf" > pdf_files.dir
FOR /f "tokens=1,2,3" %%i IN (pdf_files.dir) DO (
CALL :_ADDING %%i %%j %%k )
DEL pdf_files.dir > NUL
REN temp_in.pdf Packed_Patent.pdf
ECHO.
ECHO Done! Packed_Patent.pdf created!
ECHO.
GOTO :EOF
REM * SUBROUTINE, Adding three more pages to PDF-File
:_ADDING
ECHO Now adding %1 %2 %3 ...
IF not EXIST temp_in.pdf (
CALL pdcat -b -oT %1 %2 %3 temp_out.pdf > NUL
GOTO :_LEAVE )
CALL pdcat -b -oT temp_in.pdf %1 %2 %3 temp_out.pdf > NUL
:_LEAVE
COPY temp_out.pdf temp_in.pdf > NUL
DEL temp_out.pdf > NUL
:RETURN
-------- CUT HERE -------------------------------------
- Peter Koenig email : pk@graffinity.com
- Tel : +49(0)-6221-64933-17, FAX -11
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com