I’m pretty sure you can’t do something like that on the territory of the voting station...but they can’t stop you if you are across the street.
When I was handing out R literature in 2012, we were told that we were not allowed to campaign within 50 feet of the polling place. (This may vary by state or county.) The Democrats consistently violated this law. Not by accident or by a few inches or feet. They were right up next to the door. I took pictures. There was a huge brouhaha when they realized I had pictures of them. A huge Democrat guy tried to intimidate me into deleting them and when I refused he personally threatened me. They tried every tactic imaginable. One was to claim that it was illegal for me to take pictures of someone without their consent, that the person in the picture was the legal owner, etc., etc., etc. In between bullying sessions, I emailed copies to myself and to several other people as “insurance.”