test for pdf and some doc