How we can send reports from server script?

I want to send sales invoices in emails along with payment history to my clients using server script. I have created a report for payment history. Now I want to send emails from server script to my clients containing sales invoices and payment history. I can send the sales invoice but I am not finding a way to send a report as a pdf from the server script. can anyone help me to solve my requirement?