You are currently viewing the new Beta Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the Beta Editor Docs

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([filename="print.pdf"], [landscape=False], [margins=], [page_size="letter"], [quality="default"], [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 (more info)

      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