fixing broken pdf