How to generate pdf print of a SalesInvoice using .Net SDK

I am trying to automate the process of printing as invoice pdf  and uploading them to another system.

Is there a way to obtain a pdf print of  a SalesInvoice from .NET code using the SDK.