28 lines
958 B
Batchfile
28 lines
958 B
Batchfile
@echo off
|
|
|
|
|
|
pdftotext manual_recognized.pdf manual2.ocr.txt
|
|
pdftotext _manual_recognized.pdf manual2.ocr.txt
|
|
pdftotext mag_recognized.pdf manual2.ocr.txt
|
|
pdftk "manual_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "manual2.pdf"
|
|
pdftk "_manual_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "manual2.pdf"
|
|
pdftk "mag_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "[300dpi][ocr].pdf"
|
|
pdftk "_manual_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "[600dpi][ocr].pdf"
|
|
pdftk "_tablet_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "[150dpi][ocr].pdf"
|
|
pdftk "audiomedia_recognized.pdf" update_info D:\Retro-Work\metadata.txt output "Privat_Computer_199x_-_xx.pdf"
|
|
|
|
start [600dpi][ocr].pdf
|
|
start [150dpi][ocr].pdf
|
|
|
|
choice /m "Delete old files?"
|
|
|
|
if %ERRORLEVEL% EQU 1 goto delete
|
|
goto end
|
|
|
|
:delete
|
|
del _manual.pdf
|
|
del _manual_recognized.pdf
|
|
del _tablet.pdf
|
|
del _tablet_recognized.pdf
|
|
|
|
:end |