move process_pdf chain in the tasks module