1: <?php
2: /**
3: * The Horde_Mime_Viewer_Pdf class simply outputs the PDF file with the
4: * content-type 'application/pdf' enabling web browsers with a PDF viewer
5: * plugin to view the PDF file inside the browser.
6: *
7: * Copyright 2003-2012 Horde LLC (http://www.horde.org/)
8: *
9: * See the enclosed file COPYING for license information (LGPL). If you
10: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
11: *
12: * @author Michael Slusarz <slusarz@horde.org>
13: * @category Horde
14: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
15: * @package Mime_Viewer
16: */
17: class Horde_Mime_Viewer_Pdf extends Horde_Mime_Viewer_Base
18: {
19: /**
20: * This driver's display capabilities.
21: *
22: * @var array
23: */
24: protected $_capability = array(
25: 'full' => true,
26: 'info' => false,
27: 'inline' => false,
28: 'raw' => false
29: );
30:
31: /**
32: * Return the full rendered version of the Horde_Mime_Part object.
33: *
34: * @return array See parent::render().
35: */
36: protected function _render()
37: {
38: return $this->_renderReturn(null, 'application/pdf');
39: }
40:
41: }
42: