I need the help on the below two things
1) I need to convert the PDF file data to bytes arrray in JavaScript .
2) Using the above bytes array, I need to render it in the UI as PDF file.
Questions may look like, why I want to convert the PDF file to bytes Stream and again why I want to show it as PDF in UI. But I need to figure out a way for the above two which helps me to solve many issues in my project.
Any suggestions for reading or solutions to above problems will be much appreciable.
Thanks for your time!