President Ronald Reagan signs the Economic Recovery Tax Act of 1981 before members of the media in California. (Courtesy of the Ronald Reagan Presidential Library/Courtesy of the Ronald Reagan Presidential Library)

At the end of his presidency, Ronald Reagan confessed to ­David Brinkley of ABC News that "there have been times in this office when I wondered how you could do the job if you hadn't been an actor."

It's a signal moment in "The Reagan Show," a documentary gleaned from endless hours of White House archival footage. The comment underscores how the former B-movie cowboy forever altered the nation's highest office with his savvy use of the televised image.

In hindsight, the filmmakers suggest, this also anticipated the arrival of Donald Trump in the Oval Office.

"You can't overemphasize what a leap it was to have an actor become president," said Sierra Pettengill, who co-directed the film with Pacho Velez. "That's the beginning of a slide to having a reality TV star as president. . . . Trump's ascendancy proved the thesis we were working on all along."

The film, which has its television premiere at 9 p.m. Monday on CNN, views Reagan's made-for-TV presidency almost exclusively through broadcast news and archival footage, much of it drawn from some 1,500 hours of material shot by the U.S. Naval Photographic Unit and stored at the Ronald Reagan Presidential Library and Museum. The trove of 16mm film and Betacam video had been little explored.

Pettengill cites journalist Mark Hertsgaard, author of "On Bended Knee: The Press and the Reagan Presidency," who noted that, as a manipulator of the media, Reagan "took it all to a new level. He institutionalized how the President communicates to the public."

Reagan came to political life with resources that set him apart from his peers. He "emerged from a long career in Hollywood with enormous skills to communicate," said David Gergen, the CNN senior political analyst who served as Reagan's director of communications and also worked in the Nixon, Ford and Clinton administrations. "They were natural skills he had before, but he honed them in his Hollywood days and then when he was on the road for General Electric in the 1950s. He really heard the voice of the people, and he could respond to it in ways that no other politician of his generation did."

The film finds sardonic humor in Reagan's folksy manner and miscues: his tongue-twisting over the pronunciation of former New Hampshire governor John H. Sununu's name, for instance, or the infamous and not-really-so-funny "the bombing begins in five minutes" ad-lib, made when the president thought his microphone was off. The awkward asides are a reminder, Pettengill said, that "he wasn't the best thespian."

Yet, the film as often makes the case for Reagan as a leader who knew how to charm the news media, a stark contrast to the current president.

"He made the White House press pool comfortable," Pet­tengill said. "They may have opposed his policies, but as a man they loved him."

Gergen recalls how Reagan could disarm potentially tense encounters with the media.

"He was going into the press room for a really tough set of questions," Gergen said, "and it was his birthday." A few questions in, "Nancy [Reagan] and I . . . wheeled in a birthday cake, and it worked beautifully. Everybody cracked up. He cracked up. He took time to slice up the cake and give pieces to reporters.

"And by the way, we got off the issue."

The "Great Communicator" also tried to apply his charm to his greatest rival, Soviet premier Mikhail Gorbachev, whom he most memorably exhorted to tear down the Berlin Wall in 1984. In Gorbachev, he met his match — and also an ally keen on ending the Cold War, even as he upstaged Reagan.

"The idea of Reagan meeting an equal adversary makes the story of those negotiations that much more interesting," Pet­tengill said. The relationship becomes the focus of the film's second half. The filmmakers leave out major elements of Reagan's tenure, including his tragic neglect of the AIDS crisis and controversial domestic policies. They wanted to focus on how Reagan used public relations, performance and TV to end the Cold War, even as he helped to inspire "the entertainment-ization of politics," in Velez's parlance.

The project was personal for the filmmakers, who grew up in the 1980s.

Pettengill, an archival specialist who was a producer of the Academy Award-nominated "Cutie and the Boxer" and ­co-directed "Town Hall," a documentary about tea party activists, was a "Reagan baby" whose liberal parents were at odds with the president. "Reagan was a name that was yelled in my house a lot," Pettengill said.

Velez, a graduate of Harvard University's Sensory Ethnography Lab and co-director of the award-winning "Manakamana," has an early memory of his father showing him "Bedtime for Bonzo," one of Reagan's best-known films, in which he co-starred with a chimpanzee. "I remember my mind being a little bit blown by that," he said.

That factor helped to free the filmmakers from a more ideological perspective. "It matters that we're the age we are," Velez continued. "We feel responsible to get the history right. We're not re-fighting battles that were already fought."

The approach inevitably evokes a sense of nostalgia, heightened in contrast to the tweet-fueled mayhem of the Trump administration, which has had a mysterious and potentially destructive relationship with Russia.

"It's really a condensation of what it was like to be in an American living room in the 1980s and to watch history unfolding on your television set," Velez said. "At the end of film, we actually kind of like the guy." As important for the film's mission, however, is for the audience to examine its response, "to identify the tools used by politicians to create that kind of" affection.

Trump wasn't in the picture when Pettengill and Velez began working on "The Reagan Show," which they finished editing on Inauguration Day. There is a deliberate glimpse of Reagan on the stump, declaring his campaign mantra "Let's make America great again," which Trump shortened and recycled.

"It was very important to stay within a very tight set of constraints, but, yeah, Trump is all over this movie," Pettengill said.

"Don't at all think that Trump is the end of it," Velez added. "This is where we are today. Where are we going to be in 10 years?"