I have an application that is using pdfdoc to merge some temporary pdf files into one pdf. As it creates each temporary pdf, it uses pdfdoc.save to append it to the final pdf. Then I delete the temporary pdf file.
I've had some sporadic errors where I get a message that the temp pdf file is missing or access denied. I think this is because I'm deleting the temporary pdf before the pdfdoc.save has finished? I quit deleting my temporary files and I did not get the error anymore.
QUESTION: is there a way to tell if the save is finished so I can delete the temporary files? I looked at the api and could not find anything to use.