Drawing to picture

Dood day for all.

How I can save each sheet in drawing to JPEG or PNG with original drawing size in high quality?

SolidworksApi macros