save as pdf macro

Need a macro for solidworks that saves each sheet in a drawing file as an individual pdf with the same name as the sheet. Found a macro on this forum but it doesn't work when I try to save in the PDM vault unless I save the macro in every location where I want the pdfs to end up. The macro works great in the normal computer library just not the vault.

I've attached 2 macros that have been doing this. I know nothing about code but I assume it wouldn't be hard to edit one of them. 

If your name is not "Deepak Gupta" don't waste your time. Looking for the best of the best here. 

SolidworksApi/macros