You are here

function pdf_libraries_info in PDF 7

Implements hook_libraries_info().

File

./pdf.module, line 46

Code

function pdf_libraries_info() {
  $libraries = array();
  $libraries['pdf.js'] = array(
    'name' => 'pdf.js',
    'vendor url' => 'http://mozilla.github.io/pdf.js/',
    'download url' => 'http://mozilla.github.io/pdf.js/getting_started/#download',
    'version arguments' => array(
      'file' => 'build/pdf.js',
      'pattern' => "/(?:PDFJS\\.version|pdfjsVersion)\\s*=\\s*'(.*)'/",
      'lines' => 15000,
    ),
    'files' => array(
      'js' => array(
        'build/pdf.js',
      ),
    ),
    'variants' => array(
      'viewer' => array(
        'files' => array(
          'js' => array(
            'build/pdf.js',
            'web/l10n.js',
            'web/viewer.js',
          ),
        ),
      ),
      // DEV.
      'textlayer' => array(
        'files' => array(
          'js' => array(
            'build/pdf.js',
            'web/pdf_find_bar.js',
            'web/pdf_find_controller.js',
            'web/ui_utils.js',
            'web/text_layer_builder.js',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}