Invoice as PDF

Invoice as PDF

Hi All,

I am trying to share invoice as PDF via sms using custom function. i dont know how to GET invoice as pdf using api. Can anyone help me here?