onPrinterFileClose

onPrinterFileClose

Description

Specifies a function, or a string path to a Profound.js module that exports a function, which executes every time a printer file is closed. This allows your application to perform additional operations on the generated report, such as emailing or routing the PDF file.

Function Parameters

  • filePath - The PDF file path;

  • overrides - The printer file overrides object retrieved from the current Profound.js session.

Example

Point the setting at a module in the modules directory:

onPrinterFileClose: "utils/misc/onPrinterFileClose.js"

For information on how to modify this setting, see Configuration File.