Print advertising remained a challenge, as it has across the industry. Revenue in that category fell 11 percent in the quarter, to $77 million. But total advertising revenue, bolstered by strong growth on the digital side, bucked an industry trend and grew slightly, to $132 million, from $131 million in the same quarter last year.

The company brought in $407 million in revenue for the quarter, which ended in late June, an increase of 9 percent over the same period in 2016.

“We believe that the demand for quality, in-depth journalism is growing, not only in the U.S. but across the globe,” Mark Thompson, the chief executive of The Times, said during an earnings call on Thursday. “We believe that more and more people are prepared to pay for access to this kind of journalism. This is the foundation of our strategy.”

He added that The Times was on track to reach its goal of doubling its digital revenue, to $800 million in 2020 compared with $400 million in 2014.

The buoyant financial results were announced at a time of fundamental change and deep anxiety in the newsroom as The Times restructures its news operations. Within weeks, The Times will eliminate its stand-alone copy desk as it streamlines its editing ranks, a decision that provoked a strong reaction among employees. Copy editors and reporters sent angry letters to newsroom leaders, and hundreds of Times employees staged a protest last month outside the company’s headquarters in Manhattan.