Record Summary Template invoked via Custom Action

Record Summary Template invoked via Custom Action

Hello I am trying to use a sendmail function in a custom action to send out a record summary as a PDF using a record summary template. This currently isn't possible, and we are forced to send out a pdf of the view, which is not very aesthetically pleasing. This functionality would really help out my company