How much fencing are we talking here - like a few hundred feet or a massive property line job?
I'd push back a bit on the "electric is obviously the answer" thing. Don't get me wrong, battery tools are solid for most stuff, but here's what people aren't always considering: fence nailing is genuinely repetitive work. If you're doing a real fence, you're talking thousands of nails. A cordless gun will drain its battery faster than you'd think, and then you're stuck waiting for it to charge or buying extra batteries which gets expensive quick. The other thing is that nail guns vary a lot in power depending on the tool - some electrics just don't have the driving force that pneumatics do, especially if you're working with denser wood or slightly thicker stock.
That said, pneumatic does require buying a compressor upfront, which is a real chunk of money if you don't already own one. But here's the angle nobody mentioned: you can rent a compressor pretty cheaply for a day or weekend. That might actually be your best move. Rent a decent pneumatic setup for maybe $40-60 for the day, get it done fast with proper driving power, and walk away without dropping a grand on a cordless drill or dealing with battery anxiety. If it's truly a massive project spanning weeks though, then yeah, cordless makes sense because you'll amortize that cost over time. But for a month-long project that's probably concentrated work? Rental compressor and pneumatic might be your sweet spot price-wise and performance-wise.