Added full book pdf handling and fixed gs_cat toc.