pdf to tree (with comments)