Replace Multiple Text in PDF Document in Aspose.PDF Cloud Has Text Alignment Issue

@saniaaspose

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.

thanks @tilal.ahmad

keep me posted :grinning:

1 Like

hi @tilal.ahmad any update on the issue?

I don’t see anything updated in the API endpoint

@saniaaspose

I am checking the details and will update you soon.

@saniaaspose

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"
            }
        }
    ]
}