When we export to pdf we get the page location and directory information as well.We should just get the contents instead.