Read Content from PDF file

_Gaurav
Kilo Sage

Hi Folks,

I have a requirement to read the content from the PDF/Docx file. I succeed in reading content from the .txt file but couldn't find a way to read from PDF/Docx file. 
Can you guys help to find me, how I can move further on this?

For your reference, I am getting this result.

Thanks

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gaurav,

This won't be possible in ServiceNow itself. As you rightly said you are able to read content of .txt file; you can also read content of csv or xls file but not for Pdf

you would require a mid server script include to get the file content

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for the response Ankur,

Can you guide me how I can do that?

Hi Gaurav,

I would like to understand where the pdf resides

1) Are you saying pdf would be attached to table record

2) You want to get data from that pdf line by line

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

The scenario is like, I will add the attachment in the record and there is a UI Action labeled as "Read Content". Once I hit that UI Action I want all the content to populate in the description field.

I want to read the data line by line