Hi!
I am trying to replace a placeholder text with a longer string, that will need to break to multiple lines in order to fit the page. What happens is that the long string is cut off when using replacer.AddString(“placeholder”, aLongString);.
It works fine with a shorter strings.
The AddString API is for replacing delimited text (typically in a template PDF) and does not word wrap.
The AddText API replaces all text in a rectangular area and does wrap.
Please try the AddText API. If you like, you can use the TextSearch API to find your delimited text, and get the Rect of that text. You could then expand/adjust the Rect, before passing to AddText.
If the above does not work for you, could you please provide the following.
Input file(s)
Generated output file(s)
Code and settings used to generate (2) from (1)
Screenshots showing the output, and clearly indicating what you expected to get instead, and also clearly indicating the application/browser being used to view.