Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum PDF Watermark using node.js

  • PDF Watermark using node.js

    Posted by Paul Mulroney Mulroney on February 17, 2021 at 8:24 am

    Hi Everyone,
    A few people on the Omnis List have expressed interest in using node.js to manipulate PDFs. I’ve created a small demo to show the basic theory. The demo puts a watermark diagonally across the first page of the document. The sample works in Studio 10.1.
    I’ve put the code up on github – https://github.com/Logical-Developments/ldpdftools-demo
    There’s a short readme with details on how to set up your environment to use it, plus the library as JSON and binary and a test file (of course!)
    Hope you find this useful,
    Regards,
    Paul.

    Paul Mulroney Mulroney replied 1 day, 5 hours ago 3 Members · 4 Replies
  • 4 Replies
  • Deleted User

    Deleted User
    September 29, 2022 at 6:26 pm

    Thx for info

  • Philip Tulett

    Member
    September 30, 2025 at 5:20 pm

    Hi Paul,

    I am look to fill in PDF forms using Omnis, and started looking at your sample ldpdftools.

    I know you originally wrote the demo for Studio 10.2, but following your instructions, I can get it run fine with Studio 11.0 and Studio 11.1, but I am failing to get it to run with Studio 11.2. I am sure its me missing a step…

    Omnis have changed the way Packages are added to the main **jsworker** project (as per the README.md in the jsworker directory.

    I have tried ‘npm install -save ldpdftools’ but that reports:-

    npm error code E404

    npm error 404 Not Found – GET https://registry.npmjs.org/ldpdftools – Not found

    npm error 404

    npm error 404 ‘ldpdftools@*’ is not in this registry.

    npm error 404

    npm error 404 Note that you can also install from a

    npm error 404 tarball, folder, http url, or git url.

    Clearly, its my error, but I can’t find what I am doing wrong.

    Kind regards Phil

    • Philip Tulett

      Member
      September 30, 2025 at 5:42 pm

      Hi Paul,

      Actually, I can only get it to work with Studio 11.0 not Studio 11.1 or Studio 11.2.

      I think it is the way I am adding the ldpdftools entry to the omnis_modules.mjs file, which is new to the later versions of Omnis.

      Kind regards Phil

    • Paul Mulroney Mulroney

      Member
      March 13, 2026 at 12:35 am

      Hi Phil,

      Sorry for the late reply – I’m not on the forum often!

      The command npm install <module> tells npm to search for the module on their repository system. Since we’re not on there, it returns an error.

      Perhaps you mean “npm update”, which you run from the top level of the folder and tells npm to load all the packages required to support the module.

      We’re not in 11.2 yet, but it’s on our to-do list for the near future. We’ll check it out then.

      Regards

      Paul.

Log in to reply.