
Hey all, we can use Blob.toPDF to generate a PDF in Apex and download it using the Lightning component.
Refer to the post.
How to Use Apex for Effective PDF Document Generation and
Generate PDF using jsPDF in Lightning Web Component
for step-by-step instructions and a guide.
Thank you,
Dhanik