Simplify render_as_pdf?