Shortcode

Version: 1.2.3

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, or download
  • access: public, login, or register
  • accesslevel: optional Joomla access level ID
  • download: 1 or 0
  • print: 1 or 0
  • newtab: 1 or 0 (open in new tab control)
  • nocontext: 1 to soft-block right-click (alias: rightclick="0")
  • engine: builtin (default) or native
  • theme: dark or light
  • header: embed header toolbar, 1 or 0 (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, or 0 / off for text button. Aliases: thumbnail, cover
  • thumbsize / thumbwidth: width (example 240px)
  • thumbheight: auto or a fixed height such as 300px
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}