You can setup your view capture settings and pass them off to the viewcapture to print to an image.
You’d need to pass this to the printer of your choice from your code.
This is essentially the way you would print from RhinoCommon for raster based prints.
You can access the FilePDF class for printing vectors.