How do we parse the pdf attachment data?

Ankit69
Tera Contributor

Please provide the document or steps to parse the pdf attachment data?

Requirement is to parse the fields from the email PDF attachment to ServiceNow table.

5 REPLIES 5

Harsh Vardhan
Giga Patron

seems like you have to build your own java based utility in service-now , you can create here processor or you can see any java script library available which does it. so use that inside script include and then try to use that function to fetch the value. 

 

reference:

 

https://www.npmjs.com/package/pdf-parse

 

https://stackoverflow.com/questions/1554280/extract-text-from-pdf-in-javascript

Processor is deprecated, so instead scripted REST API will work?

try with external js library , give a try see if it helps. 

 

Can we use pdf.js in script include? If yes, how can we do?