Subject: | Unguarded open in saveas |
PDF/API2.pm, line 949, routine saveas, the open, print and close are not checked for errors. This may lead to mysterious messages and loss of data.
A user of mine encountered this on Windows, where the program issued (for him) ununderstandable messages like:
binmode() on closed filehandle OUTF
printf on closed filehandle OUTF
The culprit was another program that kept the pdf file open so it could not be rewritten.