Function: to_pdf - j5 - 28.0 - Reference - Hexagon

j5 Framework IndustraForm API Reference

Language
English
Product
j5
Search by Category
Reference
j5 Version
2019

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.