How do I replace a string in a PDF file using NodeJS? has a solution to replace text in a PDF. With the same code, I have a puzzling issue: the text is replaced in the sourc