When to open link in new tab?

There are links, buttons, images and much more that directs users to new pages.

In my opinion, it should always stay in the same tab unless it's a PDF or download item. But when is it acceptable to open things in a new tab?