Hi Guys, I am trying to convert a pdf to image using the pdf-image (pdf-image - npm) package. I have installed the dependencies and modified the settings.js file accordingly. No errors during restart. The challenge I have now is that when using the package in a function node I get a "TypeError: PDFImage is not a function" error. Code in function node is only:
var PDFImage = global.get('pdf-image');
var pdfImage = PDFImage(msg.payload);
Thanks for the reply Steve, the node.warn(PDFImage) throws no errors. So thats loading correctly. I also understand that I might be trying to use this package incorrectly as I have a buffer or Base64 that I want to convert and not necessarily provide a file location.