IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  Whitelist npm package "pdfkit"

    Posted Mon September 15, 2025 02:29 PM

    We are using the npm package "pdfkit" to convert html content to a pdf. We are getting an error stating "Module name 'pdfkit' is not whitelisted".

    We have more requirements in our projects where we need this conversion and so would like this package to be whitelisted.

    Thank you in advance.



    ------------------------------
    Pavitra Vedula
    ------------------------------


  • 2.  RE: Whitelist npm package "pdfkit"

    Posted Mon September 15, 2025 02:36 PM

    Please note that we also submitted a ticket with the support group. But, I saw a suggestion online that posting here with below information will help.

    Submit a whitelisting request

    If you believe a package is essential and commonly used, you can request that it be added to the official whitelist. 

    Procedure:

    1. Search the Software AG TECHcommunity for existing requests or discussions about the npm package.
    2. Create a new request on the community forum or through your official support channel, specifying the package and the business need for its whitelisting.
    3. Provide clear justification. The Software AG team evaluates requests based on security, stability, and demand. 


    ------------------------------
    Pavitra Vedula
    ------------------------------



  • 3.  RE: Whitelist npm package "pdfkit"

    Posted Tue September 16, 2025 02:51 AM

    Hi @Pavitra Vedula,

    you did not exactly say what you try to do when receiving the "error", but I would assume you try to use a WORKFLOW and within the same the Node.JS action to implement some custom code.
    Since such code run in a shared public cloud for two reasons the enabled "npm" packages are limited:  a) Ressource and b) Security.
    If you like to surround this limit you can use the Connector Builder CLI and import there all the packages you want.  In this case still there is a size limit because system resources remain shared in a public cloud.  For details please see: https://www.ibm.com/docs/en/wm-integration-ipaas?topic=connectors-webmethods-cli-connector-builder
    You might find doing development of custom code this way also more convenient with regards to version control and deployments.

    Best regards,
    Holm.



    ------------------------------
    Holm Steinland
    IBM
    Böblingen
    ------------------------------