cPath: filename + "_" + String(10000+i+1).substr(1) +".pdf"

ciao