Supporting custom pdfs