to_pdf(form_uuid, locale=None, timezone=None, **kwargs)
Returns the rendered PDF representation of this form.
This PDF is created from the latest committed version of the form (a separate database session is used for the queries).
Parameters
-
locale – The name of the locale to use. The default is to use the current request locale.
-
Timezone – The name of the timezone to use. The default is to use the current request timezone.
Returns
-
str - The binary PDF data, or None if the form cannot be rendered as a PDF.