Skip to content

GeneratePdf

This docs was updated at: 2026-02-23

com.paragon.web.GeneratePdf  ยท  Record


Action to generate a PDF of the current page.

The PDF will be returned as a byte array.

Methods

defaults

public static GeneratePdf defaults()

Creates a GeneratePdf action with default values.

Returns

A new GeneratePdf instance with Letter format, portrait orientation, and scale 1.0


of

public static GeneratePdf of(@NonNull PdfFormat format)

Creates a GeneratePdf action with the specified format.

Parameters

Name Description
format The format of the PDF

Returns

A new GeneratePdf instance


builder

public static Builder builder()

Creates a GeneratePdf action builder.

Returns

A new Builder instance