Refined get_summary
Fixed, pdf parser may consider the table of contents as a paragraph