Files generated during pdf export are useful for debugging but aren't needed for the everyday user. This request has two parts:
1. Make temporary file generation optional for users (disabled by default).
This requires making it configurable in the preferences screen.
2. To make these files more useful for debugging these should be output along side the exported file, not in the temp file directory of the os.