test a pdf file