how to create macro to create PDF of active drawing with revision and file placed on user desktop

how to create macro to create PDF of active drawing with revision and file placed on user desktop

SolidworksApi/macros