Adding sheet format to .pdf export filename

Hello there,

I want to add a sheet format to .pdf filename , that comes from macro exporting drawing to pdf. The problem is that we use the following nomenclature:

-for A4 format we add -44 to the filename (ex. XXXX-Sheet1-44.pdf)

-for A3 add -33

for A3.2 add -32

and so on

Could anyone please help me modify attached macro to do so?

SolidworksApi/macros