> For the complete documentation index, see [llms.txt](https://aeudoc.gitbook.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aeudoc.gitbook.io/developer/presentation/client-script/display-document.md). Agents can also search and read this documentation through its [MCP server](https://aeudoc.gitbook.io/developer/~gitbook/mcp).

# Display Document

## Syntax

```
$.displayDocument = function (url, contId)
```

## Arguments

<table data-header-hidden><thead><tr><th width="131">Argument</th><th width="128">Data Type</th><th width="345">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><em>url</em></p><p> </p></td><td>String</td><td>URI of the action</td><td> </td></tr><tr><td><p><em>contId</em></p><p> </p></td><td>String</td><td><p>If the "embedded pdf" plugin is supported by the browser, then load in specified container section, else new tab</p><p>If browser does not support the plugin "embedded pdf" plugin, then load in new tab.</p></td><td> </td></tr></tbody></table>

## Description

Loads a pdf file into the Page Section specified in the parameter “contId” by sending an HTTPGET request to the action of the URI specified in “url”.

If browser does not support this type of loading, a new tab will be opened and the pdf file will be loaded into the new tab instead.

## Example

The following program illustrates the function call:

```
$.displayDocument("main/loadpdf/", "pdf-container");
```

Function will send a request to “main/loadpdf” and load the returned pdf file into the Page Section by the id of “pd-container” replacing the content that is currently displayed in that Page Section. If browser does not support this, a new tab is opened where the pdf file gets loaded instead.
