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.

    Philip Tulett replied 1 day, 11 hours ago 3 Members · 3 Replies
  • 3 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

Log in to reply.