fix number format in pdf2jpg
dump result even the cross points count not equal 10
add check for processing task as the script may be executed in more than one process