MediaWiki REL1_30
PdfImage Class Reference

inspired by djvuimage from Brion Vibber modified and written by xarax More...

Public Member Functions

 __construct ( $filename)
 
 getImageSize ()
 
 isValid ()
 
 retrieveMetaData ()
 

Static Public Member Functions

static getPageSize ( $data, $page)
 

Protected Member Functions

 convertDumpToArray ( $dump)
 
 postProcessDump (array $data)
 Postprocess the metadata (convert xmp into useful form, etc)
 

Detailed Description

inspired by djvuimage from Brion Vibber modified and written by xarax

Definition at line 30 of file PdfHandler.image.php.

Constructor & Destructor Documentation

◆ __construct()

PdfImage::__construct ( $filename)
Parameters
$filename

Definition at line 35 of file PdfHandler.image.php.

Member Function Documentation

◆ convertDumpToArray()

PdfImage::convertDumpToArray ( $dump)
protected
Parameters
$dumpstring
Returns
array|bool

Definition at line 163 of file PdfHandler.image.php.

References $line, $lines, $matches, $value, and postProcessDump().

Referenced by retrieveMetaData().

◆ getImageSize()

PdfImage::getImageSize ( )
Returns
array|bool

Definition at line 49 of file PdfHandler.image.php.

References getPageSize().

◆ getPageSize()

static PdfImage::getPageSize ( $data,
$page )
static
Parameters
$dataarray
$page
Returns
array|bool

Definition at line 67 of file PdfHandler.image.php.

References $t.

Referenced by PdfHandler\getDimensionInfo(), and getImageSize().

◆ isValid()

PdfImage::isValid ( )
Returns
bool

Definition at line 42 of file PdfHandler.image.php.

◆ postProcessDump()

PdfImage::postProcessDump ( array $data)
protected

Postprocess the metadata (convert xmp into useful form, etc)

This is used to generate the metadata table at the bottom of the image description page.

Parameters
$dataArray metadata
Returns
Array post-processed metadata

Definition at line 215 of file PdfHandler.image.php.

References $type, and wfTimestamp().

Referenced by convertDumpToArray().

◆ retrieveMetaData()

PdfImage::retrieveMetaData ( )
Returns
array|bool|null

Definition at line 112 of file PdfHandler.image.php.

References $retval, convertDumpToArray(), pages, wfDebug(), wfEscapeShellArg(), and wfShellExec().


The documentation for this class was generated from the following file: