# Shortcode & Attributes

Example of a shortcode supported by Embed Any Document plugin is below

```
[embeddoc url="http://awsm.in/ppt.pptx" width="550px" height="700px" download="none" viewer="microsoft"]
```

Attributes are explained below

|            |                                                                                                                                                                              |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `url`      | <p>File URL<br> Accepted Arguments: valid file URL</p>                                                                                                                       |
| `width`    | <p>Width of document either in px or in %.<br> Accepted Argument Examples: 90% , 590px etc.</p>                                                                              |
| `height`   | <p>Height of document in px.<br> Accepted Argument Example: 500px.</p>                                                                                                       |
| `download` | <p>Show or hide download link.<br> Accepted Arguments:<br> <code>all</code> – For all user<br> <code>logged</code> – For logged user<br> <code>none</code> – no download</p> |
| `viewer`   | <p>Service provider<br> Accepted Arguments: <code>google, drive, box, microsoft</code></p>                                                                                   |
| `cache`    | <p>Disables cache for documents embedded using Google Docs Viewer<br> Accepted Argument: <code>off</code></p>                                                                |
| `text`     | <p>Changes default download button text<br> Accepted Argument: Text input</p>                                                                                                |
| `boxtheme` | <p>To choose embed theme for Box.com embeds<br> Accepted Arguments: <code>dark,light</code></p>                                                                              |
