exportAsPdf

public final void exportAsPdf(String filepath)

Exports the document as PDF format to the specified file path.

Parameters

filepath

The file path where the PDF document will be saved.


public final void exportAsPdf(FileOutputStream stream)

Exports the document as PDF format to the specified stream.

Parameters

stream

The stream where the PDF document will be written.