replacer.AddString(string, string) Function Question

30 views
Skip to first unread message

Mark Mann

unread,
Jan 21, 2021, 3:07:04 PM1/21/21
to PDFTron SDK
Is there a way to have the second parameter, the text value we are swapping in, contain a newline character/reference so that the string would span the Y axis?

Example:

replacer.AddString("[FINDME]","Mark" + Environment.NewLine + "MANN")

--> [FINDME]    --->  "MARK"
                                 "MANN"

Ryan

unread,
Jan 21, 2021, 3:56:49 PM1/21/21
to PDFTron SDK
Currently, that would accomplished with the ContentReplacer.AddText parameter, which replaces text in a rectangular area.

Let me know how that API works for you.

Reply all
Reply to author
Forward
0 new messages