Live Chat

We'll need to share your messages (and your email address if you're logged in) with our live chat provider, Drift. Here's their privacy policy.

If you don't want to do this, you can email us instead at contact@anvil.works.

anvil.pdf Module

Classes

PDFRenderer

Functions

render_form

Classes

PDFRenderer

Configure options for PDF rendering. Returns an object with a render_form() method.

Constructor

PDFRenderer([landscape=False], [margins=], [page_size="letter"], [scale=1.0])

Instance Methods

render_form(form_name, args, kwargs) → anvil.Media instance

Render an Anvil form to PDF. Pass the name of the form you want to render, plus any arguments you want to pass to its constructor.

Returns a PDF as an Anvil Media object.


Functions

render_form(form_name, args, kwargs) → anvil.Media instance

Render an Anvil form to PDF. Pass the name of the form you want to render, plus any arguments you want to pass to its constructor.

Returns a PDF as an Anvil Media object.



anvil.pdf