PDF Parsing With Postman and Express JS

Hi Everyone!

Recently, @vdespa and I collaborated on a video to demonstrate how you can parse PDFs and validate the PDF text with Postman. As of now, you can’t natively parse PDF files in Postman, however there are node.js libraries that can do this. Because of this, I figured I can stand up a node js web service, using the express js framework, and use the pdf parsing libraries in the web service, to parse pdfs sent to it, and send back the pdf text to Postman, where we can do our testing.

There is plenty that can be enhanced in this web service, but its a great place to start for anyone needing to test PDF files.

PDF Parsing Postman Template:

Express JS script:

Enjoy!

P.S. Thanks to Valentin for having me on his channel! :slight_smile:

4 Likes