PARIS — France has caused plenty of headaches for Google. Its politicians have denounced the U.S. Internet giant as a cultural imperialist; its publishers have called it a copyright cheat.

Yet France is suddenly the only country in the world in which Google has managed to achieve a longstanding business goal. A few days ago Google signed an agreement with the publisher Hachette Livre under which tens of thousands of French-language books will be pulled out of ink-on-paper purgatory and provided with a digital afterlife.

Hachette and Google reached a preliminary deal last year, but it was overshadowed by a far broader agreement between Google and U.S. authors and publishers that would have settled longstanding litigation. Like the deal with Hachette, the U.S. agreement involved books that were out of print but still protected by copyright, a category that accounts for the vast majority of the world’s books.

But last winter, a U.S. judge, Denny Chin, rejected the American settlement, and talks have stalled since. Meanwhile, with a final agreement in place in France, Google says it intends to start selling e-book versions of the Hachette titles by the end of the year, when it introduces a French version of its digital bookstore, Google Editions.