Can you use Apple TV with a projector or do you have to have an Apple TV?

I am trying to project documents from my I-pad through a projector. Is this possible?
With an HDMI cable, you should be able to do this.
With an AppleTV... Yes... Display mirror via AirPlay.

Original thread: https://forums.imore.com/threads/can-you-use-apple-tv-with-a-projector-or-do-you-have-to-have-an-apple-tv.335602/