Alle PDFs in einem Verzeichnis nach PNG verwandeln
Hier ein kurzes Windows Batch-Skript, das alle PDFs mit dem Namensschema pg_* in PNGs umwandelt. pdftoppm ist Teil von poppler und muss installiert sein.
Ich nutze das, um PDF-Präsentationen — die ich vorher mit pdftk dateiname.pdf burst in einzelne PDFs zerlegt hatte — nach PNG zu wandeln.
@echo off
setlocal enabledelayedexpansion
REM Set the output image format (e.g., png, jpeg, or ppm)
set FORMAT=png
REM Loop through all PDF files in the current directory
for %%F in (pg*.pdf) do (
echo Converting %%F...
pdftoppm -%FORMAT% "%%F" "%%~nF"
)
echo Done!
pause