Core.PDFNet. ContentReplacer doesn’t replace content with custom delimiters. Only with singular square brackets works even custom delimiters are provided.
There is an office document (.docx) with specially marked strings with custom delimiters ({{FIELD}}).
After loading the document and converting it using PDFNet.Convert to the PDFDoc instance and then applying replacer that has custom delimiters, the content does’t change. When custom delimiters has singular delimiter, for example, { and } or < and >, the replacer does not replace required string and replace strings with square brackets instead.
Latest official builds, and Release channel, are ready for production usage, however the developer channel builds do not get the same amount of testing and can be in a state of change.
Latest official builds, and Release channel, are ready for production usage, however the developer channel builds do not get the same amount of testing and can be in a state of change.
I loaded the latest version of @pdftron/pdfnet-node. Then I created a simple script using pure JS and ran the script. In the result file, there were pattern strings (the strings were not replaced as was expected).
Then I commented out the 31-st line and tried another template where squared brackets instead of curly ones. Also, the template document (where string patterns with the squared bracers) was loaded for the test, and the string patterns were replaced.
Resume
On my local machine, it still doesn’t work.
It still replaces only patterns with the squared bracers.