I am starting a PDF. It is being opened in a Chrome tab.
According to Jimis answer in my other question, the following happens:
The Process object that opened the PDF doesn't exist anymore after the main Chrome Process presents the PDF content in a tabbed Window. Find the Chrome Process and check the current title of its Window.
Now I want to close this PDF again. I go through all windows to find the name of the PDF.
I find it by using the PDF's name and adding " - Google Chrome".
The following window is found:
"test.pdf - Google Chrome"
However, when I close this window, the entire browser window is closed, not only the one tab.
Does anybody know why and how to avoid that?