#!/bin/bash

dir="${1}"
mkdir ${dir}/pdf-pass;
mkdir ${dir}/pdf-nopass;

i=0
for f in ${dir}/*.pdf; do
	i=$((i+1));
	pdftk "${f}" input_pw 123 output ${dir}/pdf-nopass/copie${i}.pdf;
	mv "${f}" ${dir}/pdf-pass; 
done
	
