Part 1- This video explains how you can export SharePoint list item to PDF.
Video explains to create a Power Automate to write the columns to PDF and download the PDF response back.
Part 2- Video explains how to create List Command Extension using SPFx to add a download button to call the Power Automate (Part 1)
To use parameter in Compose Action - trigger()['outputs']['queries']['ListItemID']