How to use pdf.js viewer for uploading pdf

Hi Team,

I am using pdfjs to show pdf on the screen
Could any one guide me with the process of uploading pdfs source such that they are displayed on the screen

Hey Saif,

For uploading you could just use the out-of-the-box Upload widget. Then you could build a logic that takes the Binary file and saves it into a table from your database. Afterwards you can just use pdf.js to preview that PDF file in the browser.

Hope this helps,


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.