Reading directly from pdf instread of creating a file.