View the pdf file and check the content (text) In Javascript Treater (IE & chrome)

Is there a way to get the stream (text) from the url like ' http://www.princexml.com/samples/flyer/flyer.pdf ' using javascript (in a protractor), process it and get its content either in a variable or in a text file without loading it

Currently I can achieve this using http.request () as mentioned at http://www.hacksparrow.com/using-node-js-to-download-files.html 'and save it as a new PDF file. parsing this new file with pdfreader.js and getting its contents. But I want to process the buffer that I receive from http.request () and return the content directly without saving / loading it or processing the content.

+3


source to share





All Articles