So here is what I am trying to do. I am getting raw pdf data from a wb service. The data looks something like this.
I get this data in the $http.success() in a string format. I wanted to show this data using the PDF.js library in my angular/ionic code. Is there any way to correct supply this pdf string data as input for the PDF.js library
I also found this angular directive that eases my use of PDF.js in angular code. https://github.com/akrennmair/ng-pdfviewer
I also tried to use this enhancement as a way to specify the data URI's as input. But I couldn't find a good way of converting my input to data URI format (base 64 encoding). https://github.com/akrennmair/ng-pdfviewer/pull/15
Any help on this will be highly appreciated. Please provide explanation with code if possible.