PrintResource.print

Builds a PDF document using the PDF form specified in the Print Resource and transfers all values from mapped form fields into the document. The PDF can then be displayed to the user in a popup window and/or saved to the file system. This method can only be used with PDF form documents.

Further documentation.

Parameters

boolean  save,  boolean  noDisplay,