Fix missing pdf file handling