debug opening of pdf