How to Parse the data from PDF Attachment and store the data in a Custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2022 01:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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>).