Activity Forums Salesforce® Discussions Can I display the lightning component as a pdf?

  • Laveena

    Member
    October 10, 2019 at 7:13 am

    Hi Saddam,

    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.

    Thanks

  • Richa

    Member
    May 14, 2020 at 3:11 pm

    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 .

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos