
| Line: 1 to 1 | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EmbedPDFPlugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/EmbedPDFPlugin or provide feedback at http://twiki.org/cgi-bin/view/Plugins/EmbedPDFPluginDev. If you are a TWiki contributor please update the plugin in the SVN repository. --> IntroductionMany browsers can show PDF documents embedded just like pictures within HTML documents using the<object> HTML tag. Unfortunately, they are usually unable to detect the preferred (screen) size and aspect ratio of the PDF document and display only a little unreadable thumbnail version of the PDF file.
This plugin adds %EMBEDPDF{...}% and %EMBEDPDFSIZE{...}% variables. These variables are helpful for embedding PDF documents in TWiki webs. %EMBEDPDF{...}% will create an <object> HTML tag to show the specified PDF file in a reasonable size (as specified within that PDF file). %EMBEDPDFSIZE{...}% will expand to the width and height of the file.
Caution
Syntax Rules
ExamplesAssume that test.pdf has a height of 40 points and a width of 100 points. Then:
.pdf extension is automatically added to the attachment name.
The plugin checks the user agent setting reported by your browser to detect IE. For IE, the width and height will be enlarged since IE displays the PDF viewer controls within the HTML document along with the PDF document itself.
EmbedPDFPlugin Global SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
Plugin Info
| |||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||||||||||||||||||