Hi, how can I read content of pdf file stored in f...
# suitescript
t
Hi, how can I read content of pdf file stored in file cabinet in netsuite
p
What do you mean? Do you just want to manipulate it as a file (ftp it somewhere, download it etc) or try and parse it?
s
Not sure I'm giving good advice here, but if it's OCR, even if for excel generated pdfs you'd probably be looking at third-party software. That or you call APIs at Google Tesseract, Amazon Textract, or Microsoft OCR You can play around with UI Path, there is a pre-built um very simple OAuth1.0 NetSuite REST WEB SERVICES API pre-built, and then on your local machine the robot can do the above OCR. Community edition is free, I landed myself a 2 year trial last year, seems aight 👍
t
Hi @PNJ, I need to parse the content of pdf file
p
I really wouldn't bother trying if I were you. It'll lead to pain. Sorry for being negative, I'm speaking from experience. What do the PDFs contain? Can you use a 3rd party service to do it for you, or can you get the data in a more structured format? Someone else may well chime in and tell me I'm talking nonsense 🙂
z
you should try to find answer for question : "how to parse PDF with javascript"... next step is including library in NetSuite... just for example, i didn't analyze, here is one of. possible tools https://www.npmjs.com/package/pdf-parse
t
Thankuh all of you for help. @Zoran Roncevic let me try this