changing how i treat the pdf file as a resousrce