Changing which layers print via Macro

We have a large set of drawings that we outsource for manufacturing however we don't want to share all the information on the drawing. I need two versions of the drawing an internal and external copy, the internal has all the information, external is only partial.

If there a way to make a macro to print to pdf, but it will turn off the layer which has the additional internal information? Also since these drawings have a minimum of 2 sheets, up to 4 with the last always being the dxf of the part can I have the system always save the last sheet as a dxf and the remaining sheets into one PDF file?

I just don't know where to start I tried to record a macro and go from there however it was unsuccessful.

Thanks.  

SolidworksApi macros