The pdfViewer lightning component can be used in other components or lightning apps to display PDF data. This component uses the PDF.JS library and is very simple to use. Check out the example tab for a sample code and usage. All you need to do is supply this component's pdfData
attribute with the PDF data in base64 encoded format. Install the component in your org and navigate to /auradocs/reference.app for detailed documentation on how to use it.