Add helper to deal with subprocesses
make use of subprocess helper in pdf parser