Shortcode
Basic form:
{epdf file="images/docs/guide.pdf" mode="modal"}View PDF{/epdf}
Self-closing style is not used: always include the closing {/epdf} tag. Inner text becomes the button or link label.
Core attributes
- file (required): relative path or URL. Aliases:
src,url - mode:
modal(default),embed, ordownload - access:
public,login, orregister - accesslevel: optional Joomla access level ID
- download:
1or0 - print:
1or0 - newtab:
1or0(open in new tab control) - nocontext:
1to soft-block right-click (alias:rightclick="0") - engine:
builtin(default) ornative - theme:
darkorlight - header: embed header toolbar,
1or0(alias:toolbar) - height / width: CSS dimensions for the viewer
- title: modal or embed title
- page: start page number
- class: extra CSS class on the wrapper
Thumbnail attributes (modal)
- thumb: image path,
auto, or0/offfor text button. Aliases:thumbnail,cover - thumbsize / thumbwidth: width (example
240px) - thumbheight:
autoor a fixed height such as300px
Examples
{epdf file="images/docs/guide.pdf" mode="modal" thumb="auto" thumbsize="240px"}View guide{/epdf}
{epdf file="images/docs/guide.pdf" mode="embed" header="0" height="560px"}{/epdf}
{epdf file="images/docs/guide.pdf" mode="download"}Download guide{/epdf}
{epdf file="images/docs/guide.pdf" mode="modal" access="login" download="0" print="0"}Members only{/epdf}