PDFNet.ContentReplacer.process(PDFNet.Page) issue on Node.JS

,

Product: @pdftron/pdfnet-node, Node.JS

Product Version: ^9.3.0

Please give a brief summary of your issue:
(Think of this as an email subject)

I’m trying to process some string using replacer on a page. (Function: PDFNet.ContentReplacer.process)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

typeof a&&a.name?e(b,a.name,c):e(b,typeof a,c)};for(c=0;c<maxNum;c++){var m=g[c],k=m[0],l=m[1];if(k instanceof Promise)throw new TypeError(v(c)+" input argument in function '"+d+"' is a Promise object. Promises require a 'yield' sta
tement before being accessed.");if("OptionBase"===l){if(k)if("object"===typeof k){if("function"!==typeof k.getJsonString)throw new TypeError(v(c)+" input argument in function '"+d+"' is an 'oject' which is expected to have the 'getJ
sonString' function");}else e(c,k.name,
            ^

TypeError: Cannot read properties of null (reading 'name')

I have an issue with library that’s not up to me.

Please provide a link to a minimal sample where the issue is reproducible:
I’m getting this issue after calling replacer.process() function.

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:

Hi Muhammet,

To investigate further could you please provide the following information.

  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.