Skip to main content

I have been trying to get an LWC to attach a pdf to a record for a few weeks now.  Several dead ends leads me to something in my org that is preventing the creation of a visualforce page that is render as pdf.  From an LWC I am passing the component as a string.  I then use that to pass to an apex class that creates a visualforce page that I am rendering as a PDF.  The class for the visualforce page never fires.  I can confirm that the page gets created but the resulting PDF is null.  Also, my existing (classic) process of generating a pdf from another visualforce is not working when I try it in lightning.  It does work in classic.  Hoping someone has a tip because I am at my wits end trying to find a solution to generate a pdf from an LWC.  Help!  thanks!!!!

 

I also downloaded a working sample that I found.  It works in my personal developer org but when I download the same to my sandbox, I get a null PDF.

2 commenti
  1. 12 mag 2021, 12:27
    Thanks for responding! I did check and there are no conditions causing the issue. Actually, the sample that I found creates all of the records. I appreciate the input!
0/9000