How to identify "Print to File" from printer driver?

Hi,

Is there a way to identify that the current print operation is a
“print to file” from within a printer driver?