You are here

function pdf_field_formatter_info in PDF 7

Same name and namespace in other branches
  1. 6 pdf.module \pdf_field_formatter_info()

Implements hook_field_formatter_info().

File

includes/pdf.field.inc, line 10

Code

function pdf_field_formatter_info() {
  return array(
    'pdf_default' => array(
      'label' => t('PDF: Default viewer of PDF.js'),
      'description' => 'Use the default viewer like http://mozilla.github.io/pdf.js/web/viewer.html.',
      'field types' => array(
        'file',
        'link_field',
      ),
      'settings' => array(
        'keep_pdfjs' => TRUE,
        'width' => '100%',
        'height' => '600px',
      ),
    ),
    'pdf_thumbnail' => array(
      'label' => t('PDF: Display the first page'),
      'description' => 'Display the first page of the PDF file.',
      'field types' => array(
        'file',
        'link_field',
      ),
      'settings' => array(
        'scale' => 1,
        'width' => '100%',
        'height' => '',
      ),
    ),
    'pdf_pages' => array(
      'label' => t('PDF: Continuous scroll (experimental)'),
      'description' => 'Don\'t use this to display big PDF file.',
      'field types' => array(
        'file',
        'link_field',
      ),
      'settings' => array(
        'scale' => 1,
      ),
    ),
  );
}