finished the new pdf parser