dmBridge PHP API
DMPaginatedPDFViewer Class Reference
Inheritance diagram for DMPaginatedPDFViewer:

Public Member Functions


Detailed Description

Outputs an <embed> tag inside a <div> of class dmPDFViewer. If the web browser has the appropriate plug-in installed (e.g. Adobe Acrobat), the PDF will be rendered inline with the web page. If not, will display a hyperlink to download the PDF.

This viewer requires Ghostscript to be installed on the server.

The <embed> tag is not HTML-compliant, but avoids compatibility problems caused by the <object> tag.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 23 of file DMPaginatedPDFViewer.php.


Member Function Documentation

DMPaginatedPDFViewer::getHTMLTag ( )
Returns:
HTML div tag
Since:
0.1

Implements DMObjectViewerDelegate.

Definition at line 42 of file DMPaginatedPDFViewer.php.

Referenced by getHTMLTagNoJS().

DMPaginatedPDFViewer::getHTMLTagNoJS ( )
Returns:
HTML tag

Implements DMObjectViewerDelegate.

Definition at line 64 of file DMPaginatedPDFViewer.php.

DMPaginatedPDFViewer::getName ( )
Returns:
The name of the object viewer.

Implements DMObjectViewerDelegate.

Definition at line 81 of file DMPaginatedPDFViewer.php.

DMPaginatedPDFViewer::isLowBandwidthCompatible ( )

Whether the viewer is "bandwidth-safe," e.g.

whether the content it loads can be safely viewed over a subjectively "slow" connection.

Returns:
boolean True, always.

Implements DMObjectViewerDelegate.

Definition at line 74 of file DMPaginatedPDFViewer.php.

DMPaginatedPDFViewer::viewerWillRender ( )

Default implementation that does nothing.

See DMObjectViewerDelegate for documentation of this method.

Returns:
void

Reimplemented from DMAbstractViewer.

Definition at line 26 of file DMPaginatedPDFViewer.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables