WebForm.generatePdf

Generates a PDF for the current page and displays this to the user in a popup window. This method is equivalent to calling #generatePdf(PdfOptions) with a null options parameter.

There are a number of page design considerations that affect the appearance of a generated PDF e.g. how scrollable controls such as tables expand to display all content, how page breaks are handled, margins, headers and footers, page size and orientation, page numbering, print page styling etc. The Page Designer allows configuration of a number of properties for individual controls which address these considerations.

Further documentation.

Javascript example:

 form.generatePdf();