Yes, we have fixed the issue and the fix will be available in the upcoming release of Aspose.PDF Cloud 22.12. We will inform you as soon as it is published.
Please use the CenterTextHorizontally with latest release, it will resolve the issue.
centre_font_0.pdf (723.7 KB)
{
"TextReplaces": [
{
"OldValue": "TEXT1",
"NewValue": "SANIA",
"Regex": false,
"CenterTextHorizontally": true,
"TextState": {
"FontFile": "TempPdf/BADABB__.TTF"
}
},
{
"OldValue": "TEXT2",
"NewValue": "DAN",
"Regex": false,
"CenterTextHorizontally": true,
"TextState": {
"FontFile": "TempPdf/BADABB__.TTF"
}
}
]
}