There are two methods to show a PDF in Lightning Component:
First, you can create a Visualforce page and embed it in the Lightning component. See detailed example here
Second is, usage of PDF.JS library to directly use lightning component to display the PDF. See details here .Entire source code can be found here.
Hi , I can’t find the any link to source code .
Moreover , I wanted to know how to access var pdfjsLib = window[‘pdfjs-dist/build/pdf’]; ,
as it results in ‘undefined’
I want to use pdfurl instead of PDF data in base64 encoded format .