Replacement text cut off

Product: PDFTron SDK (x64) for .NET Core.

Product Version: 9.1.0

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.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

The ContentReplacer API has two methods.

AddString
AddText

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.

  1. Input file(s)
  2. Generated output file(s)
  3. Code and settings used to generate (2) from (1)
  4. Screenshots showing the output, and clearly indicating what you expected to get instead, and also clearly indicating the application/browser being used to view.