Outputting valid batches, switches in place for converting JPGs to PDFs