Text replacement via TextFragmentAbsorber is also affecting formatting

I am using Aspose.Pdf to merge multiple PDF files. The source files have a placeholder where the page numbers should be, and as part of the merging of the files, I am using TextFragmentAbsorber to search for the page number placeholder text, and replace it with the page number of the merged document. On the source files, the page number placeholder is in a gray bar that spans the entire page, but after merging and replacing the placeholder text, on some of the pages the formatting is reduced to just the text that was replaced.

I have uploaded a minimal example that demonstrates the issue.

AsposePageNumbering.zip (1.1 MB)

@bkohrs

We are checking it and will get back to you shortly.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): PDFNET-53529

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.