Hi,
We are using Aspose Pdf Version 7.2.0.0 to replace text in PDF files with the PdfContentEditor.
Attached is the PDF we are using with the code snippet below :-
PdfContentEditor contentEditor = new PdfContentEditor();
.../* setting other flags here*/
...
contentEditor.ReplaceText(@"[$]\$" + Data.Name + @"*\$[$]", Data.Value);
The problem we are facing here is that the after replacing , if the value replaced is larger than its allocated space on the PDF, it just overwrites the rest of the content.
In the sample attached, the replaced value of $$F3$$ being a little long, overwrites the "-" and the value of $$F2$$ beside it. I could not find any flag in the API /Forum to do this. Is there a way to pad the oncoming text after replacing a value so that it does not cause any overwriting and everything is displayed properly ?
Thanks