PDF::Writer centered text in the middle of the page

Hello,

I am trying to generate a PDF File with a centered text in the middle of
the page.

I have tryed to use the add_text and add_text_wrapped methods, but the
text either not fitting in the page, or the text is truncated.

Maybe I am not using correctly the API correctly ?

Thank you for your help

Gunther THEVENIN