generate_pdf_template_object kwarg link_callback