pythonwindowswinapiprintingprint-spooler-api

Is there a way to get the full path of a printed file in windows?


I am attempting to find the original file that is being printed. I am aware that there is an SPL file stored in C:\Windows\System32\spool\PRINTERS that triggers the print job, but I would like to find the file used to create this spool file.

Is there a way to get the full path of the document printed using winspool or win32 API?


Solution

  • In general, no. Only the application calling the print APIs is aware of any file involved (if any).