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)