I am trying to print a document as pdf and I am able to do that. But when I try to close the document with the command closeDoc, the pdf document alone is closing, the reader window still remains as the same. The conde snippet I used is given below.
Can you help me to figure this out?
(I am a newbie in programming and in such related topics. Forgive me if I made some wrong commands or technical word usage )
I could not find a direct command to close the reader.