How to Parse the data from PDF Attachment and store the data in a Custom table

Naveen kumar22
Kilo Explorer

I have a requirement to parse the data of the PDF attachment file and store it in a custom table whenever the HR Case changes to Closed Complete.

I tried using the GlideSysAttachement.getContent() and GlideSysAttachement.getContentStream() which are returning undefined value.

Please provide the document or steps to parse the pdf attachment data and store it in a custom table.

 

5 REPLIES 5

ryanramos
Tera Contributor

I was able to achieve this using Node.js, which you can install on the MID Server since it’s open-source. From there, you can have the MID Server, upload the PDF file and call the script directly (e.g., "node parse_pdf.js <pdf file path>" or "node parse_pdf_ocr.js <pdf file path>).