Fix opening of PDFs and notes #23.