I have built out an LWC to that I'm displaying externally in a community (public). I trying to put a print/save button on the LWC to print/save the LWC as a PDF. I've looked into jspdf and some others, but they seem to only be able to convert the contents of a VF page to PDF or convert content that is built in js to PDF. I would prefer not to rebuild my content in VF or js.

Is there a way to just put a print/save button on the LWC page that will print/save my LWC as a PDF?

  • 1
    Easiest option I have found is just to call the standard print function via JS and tell folks to use the Print to PDF option. I believe some of the Industry solution in SF have a PDF Creator, but definitely lacking in standard platform. Jun 21 at 14:26
  • @BritishBoyinDC - cool - can you point me to an example of this being done in an LWC?
    – mackmama
    Jun 21 at 14:32
  • 1


You must log in to answer this question.

Browse other questions tagged .