fix pdf_url method