onPrinterFileClose



Specifies a function or a string path to a Profound.js module that exports a function, which will execute 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.

When called, the function will receive the following 2 parameters:

  • filePath - PDF file path

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



Example
onPrinterFileClose: "utils/misc/onPrinterFileClose.js"

Click here for information on how to modify this setting.