Pdf export and send as attachment with a Form Master/detail

Hello,

I have a form application with a master/detail grid.
I would like to send this form as pdf attachment (or word is easier) in a mail
I have made a button that work to send the mail and the attachement but it’s a pain to create the PDF.
I try several system searching the forum but it doesn’t work.
First was the use of sc_pdf_output() but not sure it exist then I so NM_pdf_output() but doesn’t work eather…
So I try DOMPDF with sc_make_link but doesn’t work as the link is not read by DOMPDF
Then I try TCPDF but it works only with form fields not the detail’s grid one…
I want to send this in a file


Does anyone got an idea ?

Anyone got any idea’s