Join GitHub today
Temp PDF files are not removed after execution #1981
I am sending HTML file through stdin and getting PDF directly with stdout. The temp HTML files are removed, but PDFs remain in C:\Windows\Temp
This presents a problem when using it in production as disk slowly fills up (or quite rapidly in our case).
Ideally the temp PDF files wouldn't be necessary as they are associated with a performance penalty when outputting to STDOUT. It seems on Windows that it isn't an option, because QPrinter in QT4.8 will only accept file names and Windows doesn't use file system paths as streams (i.e. /dev/stdout).
QPdfWriter in qt5+ does, however, seem to have support for output to a QByteArray. I assume that will be used when the qt5 branch is done. Is there anything that can be done in the interim to avoid these temp files on win32?
referenced this issue
Oct 21, 2014
added a commit
Jul 8, 2015
Sounds great. Unfortunately, I don't know if I'll have time to get around