How do write this type shortcode? [closed]

You can use below shortcode ..

$att_url  is document path 
<?php echo do_shortcode('[gview file="'.$att_url.'"]');   ?>