# 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>                                                                              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.embedanydocument.com/shortcode-and-attributes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
